Hi,

I am trying to grab HTML5 video/webcam frames into a WebGL texture.

Old threads demonstrate that it is straightforward to do it in pure JS :

* https://github.com/kripken/emscripten/issues/1434#issuecomment-48155712
* 
https://groups.google.com/forum/#!searchin/emscripten-discuss/video|sort:relevance/emscripten-discuss/eKNQofq-d0E/V2sok6GoQUMJ

I my case, the WebGL context is created using native OpenGLES 2.0 API and i 
have an embedded JS library which is responsible of all getUserMedia stuff.
Therefore i need to retrieve the current WebGLRenderingContext object from 
my JS library code to be able to call texImage2D with video element as 
pixel source.

After some researches, i was not able to find out how to do it :(

Does anyone has insights about how to retrieve the current 
WebGLRenderingContext from JS ?

Regards,
Harold





-- 
You received this message because you are subscribed to the Google Groups 
"emscripten-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to