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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Ask HN: How those websites play sound without user interaction first?

3 点作者 dezmou超过 1 年前
As far I know, there is no way to play any sound on a webpage if the user did not first interact with the page.<p>But Big compagny video like TikTok or Youtube achieve to do it. You can open a direct link to a TikTok video or a Youtube Short and it will play with sound without any click.<p>Does anyone know how they bypass the restriction ? Is it some kind of whitelist that the browsers implement ?

2 条评论

gildas超过 1 年前
It looks like these websites are in a whitelist, see <a href="https:&#x2F;&#x2F;blog.google&#x2F;products&#x2F;chrome&#x2F;improving-autoplay-chrome&#x2F;" rel="nofollow noreferrer">https:&#x2F;&#x2F;blog.google&#x2F;products&#x2F;chrome&#x2F;improving-autoplay-chrom...</a>
RetroTechie超过 1 年前
It would be nice if OP would say which browser &#x2F; version &#x2F; OS we&#x27;re talking about.
评论 #37769140 未加载