Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
can video with src = URL.createObjectURL(stream) be used with gl.texImage2D #65
can video with src = URL.createObjectURL(stream) be used with gl.texImage2D as here?
the idea is to use webcam stream as a source to webgl shader. however, if you only overlay the video on top of html video element, this will probably not work ootb. I am not sure if you can intercept the call to gl.texImage2D and supply the actual video as the texture, but if you could - it would be awesome.