HLS & DASH Stream Tester
Paste an .m3u8 or .mpd address to play the stream, see what's inside and find out why it doesn't play in a browser.
Stream
Paste a stream address or pick a sample, then click Test stream.
- Format
- –
- Type
- –
- Duration
- –
- Quality levels
- –
- Picture
- –
- Level bitrate
- –
- Measured speed
- –
- Buffer ahead
- –
- Live delay
- –
- Dropped frames
- –
- Stalls
- –
The chart starts when the video plays.
Level bitrate Measured speed
The chart starts when the video plays.
Checks
- Results appear here after a test.
Requests (CORS)
- Results appear here after a test.
Quality levels
| Picture | Bitrate | Codecs | Frame rate | This browser |
|---|---|---|---|---|
| Results appear here after a test. | ||||
Audio and subtitles
- Results appear here after a test.
Manifest As received, shown as plain text.
Results appear here after a test.
Player log
- Nothing yet.
Embed this stream with Fluid Player
Copy this code into your page. Fluid Player loads hls.js or dash.js by itself when the source is a stream.
<script src="https://cdn.fluidplayer.com/v3/current/fluidplayer.min.js"></script>
<video id="video-id" crossorigin="anonymous">
<source src="STREAM_URL" type="STREAM_TYPE" />
</video>
<script>
var myFP = fluidPlayer('video-id', {
layoutControls: {
fillToContainer: true
}
});
</script>Your page must be on HTTPS, and the stream’s server must allow your site’s domain in its CORS headers, as it does for this tester. Options for streams: HLS (opens in a new tab), DASH (opens in a new tab).
How to test a stream
Paste the address
Copy the .m3u8 (HLS) or .mpd (DASH) address from your streaming server, CDN or encoder, and click Test stream.
Read the result
The stream plays in Fluid Player. Below it: quality levels, codecs, live or on-demand, and a check of every request, with what to fix in plain words.
Embed it on your site
Once it plays, copy the code under the tester to show the stream on your own page with Fluid Player.
Fix CORS on your server
A web player downloads the playlists, segments and keys with JavaScript, so the browser only hands them over if the server says your site may read them. That’s the Access-Control-Allow-Origin header. VLC and other apps don’t check it, which is why a stream can work there and fail in a browser.
location ~* \.(m3u8|mpd|ts|m4s|mp4|m4a|aac|vtt|key)$ {
add_header Access-Control-Allow-Origin "*" always;
add_header Access-Control-Allow-Methods "GET, HEAD, OPTIONS" always;
add_header Access-Control-Allow-Headers "Range" always;
add_header Access-Control-Expose-Headers "Content-Length, Content-Range" always;
if ($request_method = OPTIONS) {
return 204;
}
}An add_header inside a location block replaces the ones set above it: repeat your other headers (HSTS…) in this block if you have any.
# .htaccess or virtual host (needs mod_headers)
<FilesMatch "\.(m3u8|mpd|ts|m4s|mp4|m4a|aac|vtt|key)$">
Header always set Access-Control-Allow-Origin "*"
Header always set Access-Control-Allow-Headers "Range"
Header always set Access-Control-Expose-Headers "Content-Length, Content-Range"
</FilesMatch>Turn on the module with a2enmod headers if the header doesn’t show up.
[
{
"AllowedOrigins": ["*"],
"AllowedMethods": ["GET", "HEAD"],
"AllowedHeaders": ["Range"],
"ExposeHeaders": ["Content-Length", "Content-Range"],
"MaxAgeSeconds": 3600
}
]In the S3 console: your bucket → Permissions → Cross-origin resource sharing (CORS) → Edit, then paste this.
- Amazon CloudFront: in the cache behavior of your stream, attach the managed response headers policy CORS-With-Preflight (or SimpleCORS). With an S3 origin, also attach the origin request policy CORS-S3Origin.
- Cloudflare: add a Response Header Transform Rule that sets
Access-Control-Allow-Originfor your stream’s path. Purge the cache afterwards: cached files keep their old headers. - Any CDN: the header has to be on every file, not only the playlist. Test again here after a cache purge: the Requests list shows each file type.
Replace * with your site’s address (https://www.example.com) to allow only your site. * is fine for public streams. The Range and Content-Range lines are needed by players that download parts of a file.
Stream not playing?
- Every file of the stream sends
Access-Control-Allow-Origin: playlists, segments and keys. - Everything is on
https://, including the addresses inside the playlist. - There’s an H.264 (
avc1) quality level: HEVC and AV1 don’t play in every browser. - The playlist declares
CODECSandRESOLUTIONfor each level. - For a live stream, the encoder is broadcasting right now.
- The stream isn’t DRM-protected (Widevine, PlayReady, FairPlay): DRM needs a license server.
Questions
Is my stream address sent to you?
#, a part of the link that browsers never send to a server.Why does my stream play in VLC but not in the browser?
Access-Control-Allow-Origin header. VLC doesn’t check it. Other causes: an http:// address on an https:// page, or a codec the browser can’t play (HEVC in Chrome on some systems, for example). The tester shows which one it is.Why does it play in Safari or Chrome but not in Firefox?
Can I test an http:// stream?
http:// files on https:// pages (mixed content), so such a stream can’t play on any secure website either. The tester tries the https:// version of the address instead. If that one fails too, serve the stream over https://: most CDNs and streaming servers do it for free.Does it work with signed or token URLs?
?token=…, signed URLs). Streams protected by cookies or a login don’t play: the tester, like most web players, sends no cookies to other sites. A token that expires quickly may have expired by the time you test it.Can I test DRM-protected streams?
Does it test live streams?
How do I put the stream on my website?
More free tools
SRT to VTT Converter
Convert SRT subtitles to WebVTT for HTML5 video. Fixes broken accents, checks for errors and previews the result in Fluid Player.
VTT to SRT Converter
Convert WebVTT subtitles to SRT for YouTube, video editors and media players. Keeps positions, checks for errors and previews the result.
Player Builder
Set up Fluid Player visually, with video ads, subtitles and your colors, and copy ready-to-use code.