在 iPhone 上切换 WebVR 时,会显示一个空视频
When toggling WebVR on iPhone, an empty video shows up
在 iPhone 上单击 VR 图标时,我遇到了从 KRPano 1.19-pr16 生成的 vtour 的问题。
vTour 只是通过 droplet 和静态 360 度图像生成并封装在 Cordova 中。在任何浏览器上,单击 VR 图标即可打开 WebVR,仅此而已。
在 iPhone 秒,当我点击 VR 图标时会显示一个空视频,我必须在访问 VR 之前关闭该视频。有没有办法避免这种情况?
对于想知道为什么会出现视频以及如何避免这种情况的任何人,这里是 official forum post where Klaus answered me
that's the 'ios wakelock' hack - it play a 'hidden' video in the background to avoid that Safari would let the device go into sleep mode.
There are two solutions for custom apps (both should be applied):
Enable the 'allowsInlineMediaPlayback' setting in your app:
https://developer.apple.com/documentatio…nemediaplayback
This would avoid that the browser would open the build-in fullscreen videoplayer when playing the 'wakelock' video.
And better also disable the 'wakelock' hack of the krpano WebVR plugin:
https://krpano.com/plugins/webvr/#mobilevr_wakelock
and disable the device-sleep-mode directly in your app.
在 iPhone 上单击 VR 图标时,我遇到了从 KRPano 1.19-pr16 生成的 vtour 的问题。
vTour 只是通过 droplet 和静态 360 度图像生成并封装在 Cordova 中。在任何浏览器上,单击 VR 图标即可打开 WebVR,仅此而已。
在 iPhone 秒,当我点击 VR 图标时会显示一个空视频,我必须在访问 VR 之前关闭该视频。有没有办法避免这种情况?
对于想知道为什么会出现视频以及如何避免这种情况的任何人,这里是 official forum post where Klaus answered me
that's the 'ios wakelock' hack - it play a 'hidden' video in the background to avoid that Safari would let the device go into sleep mode.
There are two solutions for custom apps (both should be applied):
Enable the 'allowsInlineMediaPlayback' setting in your app: https://developer.apple.com/documentatio…nemediaplayback This would avoid that the browser would open the build-in fullscreen videoplayer when playing the 'wakelock' video.
And better also disable the 'wakelock' hack of the krpano WebVR plugin: https://krpano.com/plugins/webvr/#mobilevr_wakelock and disable the device-sleep-mode directly in your app.