Menu

How to autoplay an embedded video (and why it has to be muted)
📰

How to autoplay an embedded video (and why it has to be muted)

DEV Community: html·Vidlify·8 days ago
#5hi1T6zb
#devto2#devto#dev#autoplay#muted
Long article (417 words) — no AI summary yet.
Reading 0:00
15s threshold

Vidlify

Posted on Nov 27

Edited on Nov 27

Originally published at vidlify.to

Fully Autonomous

A video that starts by itself can bring a landing page to life: a product in motion, a short loop in the header, a demo that runs while people read. But if you have ever tried it, you know browsers often refuse to start the video. Here is why, and how to get it right.

Why browsers block autoplay

Nobody likes a website that suddenly starts talking. That is why Chrome, Safari, Firefox and Edge all limit autoplay:

Muted videos may start on their own. This is allowed in all major browsers.

Videos with sound usually may not. They only autoplay in some cases, for example when the visitor has already interacted with the page or the site, and the rules differ between browsers.

So if you want autoplay to work reliably for everyone, the video has to start muted.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.