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 those websites play sound without user interaction first?

3 pointsby dezmouover 1 year ago
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 comments

gildasover 1 year ago
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>
RetroTechieover 1 year ago
It would be nice if OP would say which browser &#x2F; version &#x2F; OS we&#x27;re talking about.
评论 #37769140 未加载