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 ?
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 ?