Live data from Hacker News

Ask HN: How is YouTube able to autoplay videos with volume?

news.ycombinator.com

1–9 of 9 posts

Re: Ask HN: How is YouTube able to autoplay videos with volume?

#2
How is YouTube the only site on the internet that is able to autoplay videos with volume?

They have a policy in Chrome [1]

Chrome does this by learning your preferences. 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. As you browse the web, that list changes as Chrome learns and enables autoplay on sites where you play media with sound during most of your visits, and disables it on sites where you don’t. This way, Chrome gives you a personalized, predictable browsing experience.

[1] - https://stackoverflow.com/questions/59409015/how-can-youtube...

Re: Ask HN: How is YouTube able to autoplay videos with volume?

#3

How is YouTube the only site on the internet that is able to autoplay videos with volume? They have a policy in Chrome [1] Chrome does this by learning your preferences. 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. As you browse the web, that list changes as Chrome learns and enables autoplay on sites where…

"This way, Chrome gives you a personalized, predictable browsing experience."

Right... "predictable."

Re: Ask HN: How is YouTube able to autoplay videos with volume?

#4

How is YouTube the only site on the internet that is able to autoplay videos with volume? They have a policy in Chrome [1] Chrome does this by learning your preferences. 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. As you browse the web, that list changes as Chrome learns and enables autoplay on sites where…

"This way, Chrome gives you a personalized, predictable browsing experience." Right... "predictable."

Yeah I would not like it if my browser did that either. There's probably a way to turn it off but I do not use Chrome so do not know.

Re: Ask HN: How is YouTube able to autoplay videos with volume?

#5
Auto-play video with sound is allowed by browsers after you interact with a web page. Youtube is an SPA (you can tell because it often fucks up the back button) so when you click on video link, you're interacting and auto-play works. When you open in a new tab, it loads anew and won't auto-play because there hasn't been any interaction.

https://developer.mozilla.org/en-US/docs/Web/Media/Autoplay_...

Re: Ask HN: How is YouTube able to autoplay videos with volume?

#8

Auto-play video with sound is allowed by browsers after you interact with a web page. Youtube is an SPA (you can tell because it often fucks up the back button) so when you click on video link, you're interacting and auto-play works. When you open in a new tab, it loads anew and won't auto-play because there hasn't been any interaction. https://developer.mozilla.org/en-US/docs/Web/Media/Autoplay_...

To be fair, my peers were fucking up back buttons long before the term "SPA" ever hit the scene.

https://www.nngroup.com/articles/the-top-ten-web-design-mist...