Hacker News new | ask | show | jobs
by ksherlock 969 days ago
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_...

1 comments

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...