eleVR-Web-Player icon indicating copy to clipboard operation
eleVR-Web-Player copied to clipboard

window.videoControls.classList is undefined in Cordova

Open mladenp opened this issue 9 years ago • 4 comments

I am trying to use this inside Cordova with Ionic but i am getting error window.videoControls.classList doesn't exist.

mladenp avatar Mar 15 '16 15:03 mladenp

As i am using Cordova i need to put runEleVRPlayer() inside deviceReady event. When i did that, the player is showing, i hear the sound, videoControls is still undefined BUT no video is shown. Everything works fine in latest Chrome browser but when i use it in Cordova/Ionic video is not working. I tried crosswalk so i can choose webview version (tried 13.42.319.6) but still nothing.

I am also getting a lot of warnings like: [GroupMarkerNotSet(crbug.com/242999)!:54ACDF9E]GL ERROR :GL_INVALID_OPERATION : glCreateAndConsumeTextureCHROMIUM: invalid target [GroupMarkerNotSet(crbug.com/242999)!:54ACDF9E]RENDER WARNING: texture bound to texture unit 0 is not renderable. It maybe non-power-of-2 and have incompatible texture filtering. [GroupMarkerNotSet(crbug.com/242999)!:54ACDF9E]GL ERROR :GL_INVALID_OPERATION : glCreateAndConsumeTextureCHROMIUM: invalid target

mladenp avatar Mar 16 '16 14:03 mladenp

I'm not really familiar with Cordova at all, so I'm not sure how to help.

The texture issue sometimes has to do with the size of your video, but it can show up for other reasons too.

hawksley avatar Mar 18 '16 19:03 hawksley

As far as i know there isn't any difference between standard browser and WebView with Crosswalk. The only thing they are mentioning is that they are following standard WebGL blacklist. But if it works in Chrome browser on Android it should work on Crosswalk inside Cordova.

mladenp avatar Mar 22 '16 15:03 mladenp

Load the player to an online server... Build your cordova app using an iFrame, just reference the source of the player in your iFrame.

thecrookedalchemist avatar Oct 31 '16 12:10 thecrookedalchemist