Primary and backup HLS stream URLs

Publish HLS streaming content to primary and backup locations to ensure stream availability.

You set the publishing hostname and path for a stream in your encoder. You can publish with a relative path as well as an absolute path. Publish the same content simultaneously to primary and backup paths.

Publish URLs

Use this syntax to publish primary and backup streams.

Stream type Hostname Path Example
Primary p-ep{stream_id}.i.akamaientrypoint.net {stream_id}/{event_name} http://p-ep50002.i.akamaientrypoint.net/50002/test79
Backup b-ep{stream_id}.i.akamaientrypoint.net {stream_id}-b/{event_name} http://b-ep50002.i.akamaientrypoint.net/50002-b/test79

Playback URLs

The encoder should generate the primary and backup URLs as shown:
  • Base Playback: example-i.akamaized.net
  • Primary Playback Path: hls/live/[stream_id]/[event_name]/[filename].m3u8

    Example: https://testconfig-i.akamaized.net/hls/live/50002/test79/test79.m3u8

  • Backup Playback Path: hls/live/[stream_id]-b/[event_name]/[filename].m3u8

    Example: https://testconfig-i.akamaized.net/hls/live/50002-b/test79/test79.m3u8

    This playback information is embedded in the variant .m3u8 file.

    #EXTM3U
    #EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=648224,RESOLUTION=640x360,CODECS="avc1.4d401e,mp4a.40.2"
    https://example-i.akamaized.net/hls/live/500002/test/01.m3u8
    #EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=648224,RESOLUTION=640x360,CODECS="avc1.4d401e,mp4a.40.2"
    https://example-i.akamaized.net/hls/live/50002-b/test/01.m3u8
    #EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=443680,RESOLUTION=400x224,CODECS="avc1.42e00d,mp4a.40.2"
    https://example-i.akamaized.net/hls/live/500002/test/02.m3u8
    #EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=443680,RESOLUTION=400x224,CODECS="avc1.42e00d,mp4a.40.2"
    https://example-i.akamaized.net/hls/live/50002-b/test/02.m3u8
    #EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=956544,RESOLUTION=640x720,CODECS="avc1.4d401f,mp4a.40.2"
    https://example-i.akamaized.nett/hls/live/500002/test/03.m3u8
    #EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=956544,RESOLUTION=640x720,CODECS="avc1.4d401f,mp4a.40.2"
    https://example-i.akamaized.net/hls/live/50002-b/test/03.m3u8