resl icon indicating copy to clipboard operation
resl copied to clipboard

Youtube support

Open Boscop opened this issue 8 years ago • 5 comments

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

Boscop avatar Jan 20 '17 13:01 Boscop

@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.

neiltron avatar Jan 30 '17 21:01 neiltron

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.)

Boscop avatar Jan 31 '17 02:01 Boscop

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.

samelie avatar Jun 13 '17 21:06 samelie

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

Boscop avatar Jun 13 '17 21:06 Boscop

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.

neiltron avatar Jun 14 '17 20:06 neiltron