Re:Real-Time Video Processing with WebCodecs and Streams
by nl on Saturday March 18, 2023 @09:58PM
(#35215215)
Is there a way to stream YouTube video to these APIs without a CORS proxy?
[ Parent
| on HN ]
Re:Real-Time Video Processing with WebCodecs and Streams
by badtuple on Sunday March 19, 2023 @03:28AM
(#35216823)
I'm curious about this too, but haven't been able to figure it out. I want to do some extremely basic detection on user specified videos and it'd be really slick to do it entirely in the browser.
Unless someone has a trick I haven't thought of though, I think I'll have to download it first which isn't nearly as cool :/
Re:Real-Time Video Processing with WebCodecs and Streams
by nl on Sunday March 19, 2023 @04:19AM
(#35217032)
It's annoying because it's just the same-origin thing stopping it working.
I see there is an origin parameter[1] which sounds like it is nearly what is needed.
I don't know exactly what CORS setting is needed to make this work though.
[1] https://developers.google.com/youtube/player_parameters#orig...