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

Youtube support #12

Open
Boscop opened this issue Jan 20, 2017 · 5 comments
Open

Youtube support #12

Boscop opened this issue Jan 20, 2017 · 5 comments

Comments

@Boscop
Copy link

Boscop commented Jan 20, 2017

How can resl be used to postprocess a streaming youtube video?

@neiltron
Copy link

@Boscop unless I'm misunderstanding, you generally don't have access to youtube videos for processing in the browser because they are wrapped in iframes.

@Boscop
Copy link
Author

Boscop commented Jan 31, 2017

If you know the URL/ID of a youtube video, you can access its stream.
It's up to you whether you put it in an iframe or not.
What would it take to be able to bind the youtube video stream to a webgl texture?
(It works with webm easily.)

@samelie
Copy link

samelie commented Jun 13, 2017

Streaming in browser is not possible directly because video frames cannot be read from iframe. You could use the youtube-dl project with a node server to download the videos.

@Boscop
Copy link
Author

Boscop commented Jun 13, 2017

But it'd be possible with a CORS proxy to make it a CORS request, right?

@neiltron
Copy link

What you're describing might be doable in a proxy server, but as far as I know getting direct file URLs for youtube videos isn't entirely trivial. You would have to use youtube-dl or something similar (there's this) and doing so is against Youtube's ToS (if that matters to your project).

Either way, you would be handling a regular video file at that point, which resl can already do.

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