pupunzi / jquery.mb.YTPlayer

use a custom yutube player for a video as background on jQuery framework
https://pupunzi.com/mb.components/mb.YTPlayer/demo/demo.html
1.3k stars 431 forks source link

Video stops on first frame and has loader in Safari #396

Closed tleifj closed 5 years ago

tleifj commented 5 years ago

This is similar to issue #334 which had a fix but it doesn't seem to be working for me. The video hangs in Safari on the first frame. It sits there with the YT loading circle. Interestingly, If I resize the window or go to a new tab and back, it will work.

Safari Version 12.0 (13606.2.11) macOS 10.13.6 (High Sierra)

pupunzi commented 5 years ago

Hi, this is why the video stops to autoplay:

https://faq.dailymotion.com/hc/en-us/articles/360000102908-Browser-rules-that-determine-autoplay

Working to make it start playing again. Hope to publish a fix soon.

pupunzi commented 5 years ago

@tleifj can you try downloading and testing the master?

https://github.com/pupunzi/jquery.mb.YTPlayer/archive/master.zip

Now on Safari if the autoplay option is set to true the audio is forced to mute before the video starts playing and additionally if the browser settings have the "automatic reproduction" set to "never" the video would anyway start after the first user mousedown interaction.

Let me know if those changes fix your issue.

tleifj commented 5 years ago

Hello,

This looks like it worked! Thanks for the quick response and fix!