stamat / youtube-background

ESM / jQuery plugin for creating video backgrounds from YouTube, Vimeo or video file links.
https://stamat.github.io/youtube-background/
MIT License
175 stars 54 forks source link

Embedded YT playback quality poor on iOS Safari #48

Closed simonfrost closed 1 year ago

simonfrost commented 2 years ago

Wondering if there's anything I can do to improve the quality of the embedded YT stream when viewing on iOS Safari.

Same page viewed on a desktop (reasonably recent Macbook / Chrome) looks to be playing HD (in whatever capacity) but the same page on the same local wifi connection viewed on iOS Safari is horribly pixelated.

Are there any parameters/config values I can tweak?

Cheers.

simonfrost commented 2 years ago

My implementation is playing the embedded stream as a background. On further searching, this looks like it might be a limitation of mobile devices... It'd be interesting to hear this confirmed though :-)

stamat commented 1 year ago

@simonfrost hey bud, late aren't I... Just went to buy a pack of cigarettes 😆

Anyway yeah... https://developers.google.com/youtube/iframe_api_reference#october-24,-2019 Youtube dictates the quality of the stream depending on the conditions, like the device, internet speed and viewport size, they do this cause servers and their maintainance isn't free, and what we do here we use their service for free without the ads - so they don't like it, it spends their moneys.

I wonder how long till they force ads on embeds?! 😱

Cheers! 🥂