How Playback Works
We give you a URL, you use it to play a video
After you upload a video and have an Edge Key, you can play it from either:
- The iframe player:
https://player.antcdn.net/v1/{edgeKey}/master.m3u8 - The worker (raw HLS):
https://worker.antcdn.net/v1/{edgeKey}/master.m3u8
If your video is private, you’ll append a JWT (?jwt=...). For public videos, you can embed/play directly.
Choosing a player
- Iframe - Shaka Player under the hood. Fastest to embed.
- Video.js - Likely the best all around choice.
- Shaka Player - Not so user friendly, but very robust.
- HLS.js - Most lightweight option.
- Mux Player - Great if you’re already using Mux.
Why you might choose Shaka Player
Shaka player is an excellent project which has unique features relative to other players:- Offline playback
- Sophisticated DRM support
- Low level resolution & playback control
- Native AdManager integration for interstitial ads
- Exceptional retry logic
- Chromecast support
We choose to build on Shaka Player for these reasons. But for most use cases, video.js is excellent.