stamat/youtube-background

youtube-background | Video stop on mobile when switching tabs/ windows

steve-s-eightball-media opened this issue · 5 comments

Hi developers,

I discovered this issue when I tested it on a simulator(Inspect tool on Chrome browser) and a mobile device (iPhone 12, Chrome).

The video played automatically on a mobile device, but when I switched between tabs, it stopped. Following is the jQuery I put in,

jQuery('[data-vbg]').youtube_background({ 'lazyloading': true, 'always-play' : true, 'mobile' : true, 'loop' : true });

Just wonder if anyone experienced the same issue.

Thank you,

@steve-s-eightball-media I see what you mean! You are right it is a bug. I'll look into it!

This happens not only on Chrome but on Safari to!

Thank you for reporting this! 🙌

@stamat ,

Thank you and much appreciated.

@steve-s-eightball-media hey! The update is in the version 1.1.2! Works for YouTube and regular Video backgrounds, butthere are issues with Vimeo, and it's probably not due this code, but it's due their player or their streams...

🙌

Hi @stamat the issue is fixed on my end, thank you.

@steve-s-eightball-media thanks for confirming! ☺️