Skip to main content

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 PlayerShaka player is an excellent project which has unique features relative to other players:

  1. Offline playback
  2. Sophisticated DRM support
  3. Low level resolution & playback control
  4. Native AdManager integration for interstitial ads
  5. Exceptional retry logic
  6. Chromecast support

We choose to build on Shaka Player for these reasons. But for most use cases, video.js is excellent.