简体   繁体   English

如何在不触摸的情况下与iPhone浏览器进行交互?

[英]How to interact with iPhone browser without touching it?

So, I am developing this VR website online with JavaScript. 因此,我正在使用JavaScript在线开发该VR网站。 I have a function that instantiates an object in the 3D room, at the given location that the user is "watching". 我具有一个在用户“观看”给定位置处实例化3D房间中的对象的功能。

However, I don't see how I can execute that function when my iPhone is locked away in the VR headset. 但是,当iPhone锁定在VR耳机中时,我看不到如何执行该功能。 I have been thinking about volumeup-button on my headset that is connected to it or something, but haven't found anyone that has done that before. 我一直在思考与之相连的耳机上的音量增大按钮或其他功能,但之前没有人找到。

Do you guys have any advice? 你们有什么建议吗? Could there be a way of connecting a BlueTooth remote to it? 可以将蓝牙遥控器连接到它吗? Or is it simply impossible? 还是根本不可能?

TLDR; TLDR; How to execute a function in the browser on your phone, when you can't touch your phone. 无法触摸手机时如何在手机的浏览器中执行功能。

It is possible to connect Bluetooth keyboard to iOS devices, as you suggested in your post. 如您在帖子中所建议的, 可以将蓝牙键盘连接到iOS设备。

You might also leverage the other sensors in the phone (such as accelerometer, gyroscope, microphone), but I'm not certain if Safari has access to those. 您可能还利用了手机中的其他传感器(例如加速计,陀螺仪,麦克风),但是我不确定Safari是否可以访问这些传感器。 You would have more options if you developed a standalone application rather than trying to go through a browser. 如果您开发一个独立的应用程序而不是尝试通过浏览器,则将有更多选择。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM