Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is wake lock base64 video required ? #350

Closed
yuccai opened this issue Jun 25, 2019 · 3 comments
Closed

Is wake lock base64 video required ? #350

yuccai opened this issue Jun 25, 2019 · 3 comments

Comments

@yuccai
Copy link

yuccai commented Jun 25, 2019

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.

@jsantell
Copy link
Contributor

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.

@jsantell
Copy link
Contributor

You can also use this option so the cardboard-vr-display does not attempt to use the wakelock as a stopgap potentially

@yuccai
Copy link
Author

yuccai commented Jun 28, 2019

It does the job 👍, thanks

@yuccai yuccai closed this as completed Jun 28, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants