TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

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

12 pointsby linuxdeveloperover 1 year ago
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?

5 comments

LinuxBenderover 1 year ago
<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:&#x2F;&#x2F;stackoverflow.com&#x2F;questions&#x2F;59409015&#x2F;how-can-youtube-and-twitch-override-the-autoplay-policy-for-videos-with-audio" rel="nofollow noreferrer">https:&#x2F;&#x2F;stackoverflow.com&#x2F;questions&#x2F;59409015&#x2F;how-can-youtube...</a>
评论 #38086060 未加载
ksherlockover 1 year 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&#x27;re interacting and auto-play works. When you open in a new tab, it loads anew and won&#x27;t auto-play because there hasn&#x27;t been any interaction.<p><a href="https:&#x2F;&#x2F;developer.mozilla.org&#x2F;en-US&#x2F;docs&#x2F;Web&#x2F;Media&#x2F;Autoplay_guide" rel="nofollow noreferrer">https:&#x2F;&#x2F;developer.mozilla.org&#x2F;en-US&#x2F;docs&#x2F;Web&#x2F;Media&#x2F;Autoplay_...</a>
评论 #38094780 未加载
tkiolp4over 1 year ago
Google owns YouTube and Chrome. They can do whatever they want with any of them.
vhcrover 1 year ago
It&#x27;s not, Firefox works perfectly and blocks it from autoplaying.
remypover 1 year ago
It&#x27;s even more fun in Safari on MacOS. Videos don&#x27;t autoplay, but they also don&#x27;t play when you DO hit the play button.