TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

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

12 点作者 linuxdeveloper超过 1 年前
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 条评论

LinuxBender超过 1 年前
<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 未加载
ksherlock超过 1 年前
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 未加载
tkiolp4超过 1 年前
Google owns YouTube and Chrome. They can do whatever they want with any of them.
vhcr超过 1 年前
It&#x27;s not, Firefox works perfectly and blocks it from autoplaying.
remyp超过 1 年前
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.