New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

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

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

This comment has been minimized.

Show comment
Hide comment
@ibc

ibc Sep 16, 2015

Member

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.

Member

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.

@adam-hanna

This comment has been minimized.

Show comment
Hide comment
@adam-hanna

adam-hanna May 8, 2016

@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

adam-hanna commented May 8, 2016

@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

This comment has been minimized.

Show comment
Hide comment
@ibc

ibc May 10, 2016

Member

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

Member

ibc commented May 10, 2016

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

@adam-hanna

This comment has been minimized.

Show comment
Hide comment

Thanks

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