Skip to main content

Asset ID vs Edge Key

How AntCDN Handles Playback

When you upload a video, there are two IDs you should be aware of:

  1. The Asset ID (video ID). This is what you use for API operations like details and deletion.
  2. The Edge Key. This is what you embed in players.

Why This Matters

The Edge Key is the only ID you should expose to end users. With Edge Keys you can rotate/revoke playback without re-uploading.

You can revoke an Edge Key at any time, create private Edge Keys (JWT required), and apply restrictions (like host restrictions).

Your First IDs

When you create an asset, you get an Asset ID and at least one Edge Key.

If your video is public, the Edge Key can be used immediately.

Streaming with a public Edge Key is simple. Add it to your player.

<iframe
src="https://player.antcdn.net/v1/{edgeKey}/master.m3u8"
frameborder="0"
allowfullscreen>
</iframe>

Restricting Playback

See Private Videos.

To create additional Edge Keys (including private/restricted keys), see Create new Edge Keys.

Converting your asset from public to private

Looking to convert your asset from public to private? Revoke the public Edge Key and make a new one. No need to re-upload a video.

To do this, see Create new Edge Keys.