Small, readable, no build step.
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.
A responsive box
A wrapper with aspect-ratio keeps the frame at 16:9 or any other ratio at every width — no padding hacks.
Only standard attributes
controls, autoplay, muted, loop, playsinline, preload and poster on a plain <video> — style it like any element.
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.
Check the stream before you embed it.
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