daphtdazz / WebBLE

iOS WebBluetooth Polyfill
Other
110 stars 38 forks source link

Videos play fullscreen #16

Closed daphtdazz closed 4 years ago

daphtdazz commented 5 years ago

From email:

There is one bizarre behavior that happens with your browser that doesn't happen in safari or chrome on iOS. THREE.js and other WebVR solutions use a hack of playing a 1second movie in the browser to prevent the screen from going to sleep. In your browser it automatically full-screens which then requires it to be closed which defeats the whole purpose of displaying it to begin with. Is this something that you can fix? This link further explains the technique used: https://davidwalsh.name/wake-lock-shim

daphtdazz commented 4 years ago

I enabled inline video playback in the web view so hopefully this is now fixed.