can video with src = URL.createObjectURL(stream) be used with gl.texImage2D #65

Closed
makc opened this Issue Sep 12, 2015 · 4 comments

Projects

None yet

3 participants

@makc
makc commented Sep 12, 2015

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.

@ibc
Collaborator
ibc commented Sep 16, 2015

Unfeasible unless I miss something. Indeed this plugin places a native iOS UIView on top of the browser. And not, I cannot supply the video as the texture (or I have no idea on how to do that). Sorry.

@ibc ibc closed this Sep 16, 2015
@adam-hanna
adam-hanna commented May 8, 2016 edited

@ibc
@makc

I'm not sure I understand the gl.textImage2D implication, but in new ios safari versions it is possible to feed createObjectURL(file) to video src. Would it not work with stream?

e.g. this works for me on mobile safari:
http://bl.ocks.org/unRob/3bd07a012597aa959c92

@ibc
Collaborator
ibc commented May 10, 2016

No. The video stream is handled by the native Swift/ObjC layer of the plugin.

@adam-hanna

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment