Upload order for HLS

In accordance with the HLS recommendation, encoders must upload all required files for a specific bit rate and segment before proceeding to the next segment. The encoder should only move to the next segment after the previous segment has been successfully uploaded or after the segment duration time has elapsed.

With low latency streaming, the encoder uploads fragment chunks and the manifest simultaneously, so the player can start rendering the fragments before the complete segment is uploaded. For additional information, refer to Chunked transfer encoding.

Upload the files and segments for HLS in this order:

  1. Upload .ts, mp4, m4s, m4a, or m4v.
  2. Upload key file. This is optional.
    Note: Once your key file is published, it is cached for 24 hours. If you need to upload a new key, use a different file name. If you fail to do this, your stream viewers may experience temporary playback failures.
  3. Upload .m3u8.
    Important: Do not proceed to Step 3 until Step 1 succeeds.