Skip to content
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
Closed

Comments

@makc
Copy link

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
Copy link
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.

@adam-hanna
Copy link

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
Copy link
Collaborator

ibc commented May 10, 2016

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

@adam-hanna
Copy link

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants