How is YouTube the only site on the internet that is able to autoplay videos with volume?<p>I thought the browsers prevented that.<p>How are they doing this?
<i>How is YouTube the only site on the internet that is able to autoplay videos with volume?</i><p>They have a policy in Chrome [1]<p><i>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.</i><p>[1] - <a href="https://stackoverflow.com/questions/59409015/how-can-youtube-and-twitch-override-the-autoplay-policy-for-videos-with-audio" rel="nofollow noreferrer">https://stackoverflow.com/questions/59409015/how-can-youtube...</a>
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.<p><a href="https://developer.mozilla.org/en-US/docs/Web/Media/Autoplay_guide" rel="nofollow noreferrer">https://developer.mozilla.org/en-US/docs/Web/Media/Autoplay_...</a>