videojs-panorama icon indicating copy to clipboard operation
videojs-panorama copied to clipboard

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

Open AyushiK11 opened this issue 8 years ago • 1 comments

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 ?

AyushiK11 avatar Feb 10 '17 12:02 AyushiK11

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

yanwsh avatar Feb 28 '17 03:02 yanwsh