dodocastToolsHLS embed code

HLS embed code.An m3u8 on your page.

Paste a stream and get the HTML to put it on your site: a <video> with hls.js, the browser’s built-in HLS as a fallback, a responsive or fixed size, a poster and autoplay. The preview plays the stream right here.

Paste your stream or

Player
Size

Browsers autoplay only muted video, so Autoplay turns Muted on. The preview never autoplays.

HTML code
Preview
Paste a stream URL to see the preview
What’s in the code

Small, readable, no build step.

01

hls.js from a CDN

The script loads hls.js 1.x from jsDelivr. Where Media Source Extensions are missing, the stream goes to the native player.

02

A responsive box

A wrapper with aspect-ratio keeps the frame at 16:9 or any other ratio at every width — no padding hacks.

03

Only standard attributes

controls, autoplay, muted, loop, playsinline, preload and poster on a plain <video> — style it like any element.

Before you paste it

The stream server must allow your site.

hls.js reads playlists and segments with JavaScript, so the stream must send Access-Control-Allow-Origin for your domain. Check a link in the HLS player first: if it plays there with hls.js, it will play on your page.

Questions about embedding.

Why does autoplay need muted?

Browsers block autoplay with sound. A muted video starts on its own; viewers turn the sound on themselves.

Should I self-host hls.js?

For production, yes: pin a version and serve it from your own domain or bundle it. The CDN link is the quickest start.

Does it work on iPhone?

Yes. Recent iOS supports hls.js through Managed Media Source, and older iPhones fall back to Safari’s built-in HLS.

Can I embed a dodocast video instead?

Yes, without any code: every dodocast video has an embed code with the dodocast player, privacy settings and allowed domains — see player and embed.

$20 on sign-up

Your channel is one upload away.

Sign up, get $20 on your balance and put your first video on air.

or write to hello@dodocast.com