yanwsh / videojs-panorama

a plugin for videojs run a full 360 degree panorama video.
http://yanwsh.github.io/videojs-panorama/
Other
492 stars 160 forks source link

WebGl Crash - Rats webgl hit a snag is occurring on chrome v56 #58

Open AyushiK11 opened 7 years ago

AyushiK11 commented 7 years ago

In a particular VR 360 stream, WebGl is crashing with a prompt - "Rats webgl hit a snag". In the console, warning -" WebGL: CONTEXT_LOST_WEBGL: loseContext: context lost ", comes. I want that when this error comes, rendering should happen in a non VR way, the same way as it happens when WebGL is not supported. I am trying to handle this crash by adding a listener for "webglcontextlost" event . In the function that handles this crash, I am calling cancelAnimationFrame(requestAnimationId). Then, I am removing the child canvas from player, removing listeners for animate() and show() function, and then I am calling player.play()

But, this does not render the video in a non VR way. The player displays a black screen with control bar and audio continues after the WebGL crash. What else do I need to do to render the video in a non VR way ?

yanwsh commented 7 years ago

Hello, sorry for late reply. how big for the input video. There's lots of limitation for webgl. Could you also provide me a demo? thank you