thelevicole / youtube-to-html5-loader

Load YouTube videos with the HTLML5 <video> element without needing iframes or the YouTube JS API.
https://thelevicole.com/youtube-to-html5-loader/
138 stars 25 forks source link

huge lag cause of proxy #20

Open andymnc opened 2 years ago

andymnc commented 2 years ago

Cause you are literally restreaming the yourube strem via a server, videos are lagging way too much

unltdsoul commented 2 years ago

Same here. I wanted to integrate my videos on my site where i have full control, and this 'would have' worked great, except that when playing the videos with this library - they often buffer and pause so much, it makes it useless. Now and then the video stream seamlessly, but, when they don't, its useless. Use iframe embedding the videos never pause while buffering. Looks like I'm stuck having to use iframe...

thelevicole commented 2 years ago

This might be the end.

The middle-man proxy (yt2html5.com) has a fairly quick response time and the streaming of videos comes direct from YouTubes own servers so any lagging/buffering is out of our control.

I think YouTube are now forcing browsers to download an entire video file before it can be played. Previously it would play while still downloading.