Settings

Theme

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

3 points by dezmou 2 years ago · 3 comments · 1 min read


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.

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.

Does anyone know how they bypass the restriction ? Is it some kind of whitelist that the browsers implement ?

gildas 2 years ago

It looks like these websites are in a whitelist, see https://blog.google/products/chrome/improving-autoplay-chrom...

RetroTechie 2 years ago

It would be nice if OP would say which browser / version / OS we're talking about.

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection