kihong choi
kihong choi

Reputation: 71

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.

Upvotes: 7

Views: 1362

Answers (1)

Jan Molnár
Jan Molnár

Reputation: 420

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.

Upvotes: 3

Related Questions