Is wake lock base64 video required ?
yuccai opened this issue · comments
Hi,
I'm using 0.10.10
webvr-polyfill
and my content security policy directive prevents me to load any media.
I would like to know if i can still use this polyfill by disabling wake lock feature and its no sleep video
to not load its base 64 video content.
Wakelock is weird -- the cardboard-vr-display dependency uses nosleep.js to handle this, and it's always been a fragile thing, requiring updates for every new iOS version. Maybe there's some promise in the new Wakelock API proposal?
I hope there's some way to achieve the same effect without the base64 video string in the case of using CSP, but it's been awhile since I've looked at this area of code.
You can also use this option so the cardboard-vr-display does not attempt to use the wakelock as a stopgap potentially
It does the job 👍, thanks