Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

browser autoplay policy. How does autoplay work in Netflix?

I've developed an application like netflix which streams video. I'm working with video.js.

when I try to play unmuted video, it throw error says that "Uncaught (in promise) DOMException: play() failed because the user didn't interact with the document first. https:// goo.gl/xX8pDD"

I can understand what the policy is, but I wonder how autoplay works in Netflix.

Video Preview on netflix works with sound well on chrome and safari. as soon as I access the video chat page in Netflix party, it turns to play with sound.

I wanna know what they do and apply them to mine.

Thanks.

like image 932
kihong choi Avatar asked Oct 16 '22 01:10

kihong choi


People also ask

Why is Netflix not Autoplaying the next episode?

On an iPhone, iPad, Android phone or tablet Tap Manage Profiles. Select the profile you want to edit. Toggle the switch next to Autoplay Next Episode to turn the setting on or off. Tap Done.

Do browsers block Autoplay?

Some web browsers, including Chrome, restrict the autoplay of videos to improve the user experience. In some cases, this may result in the video features of Wonder not functioning. To prevent this, make sure the 'autoplay block' is disabled in your browser.

Can I stop videos from automatically playing on Chrome?

Disable Autoplay Videos in Chrome on AndroidAndroid makes disabling autoplay videos simple. First, launch Chrome on your phone or tablet and go to Settings > Site Settings. Next, scroll down the menu and tap on Media, and then Autoplay and toggle the switch off.


1 Answers

It seems some sites are whitelisted:

If you don’t have browsing history, Chrome allows autoplay for over 1,000 sites where we see that the highest percentage of visitors play media with sound.

like image 168
Jan Molnár Avatar answered Oct 21 '22 08:10

Jan Molnár