Updated on 2024-07-29 GMT+08:00

HLS

For an ingest domain name, parameters of an HLS livestream, such as TS Segment Length, Segments in Each M3U8 File, and Segments in First M3U8 File, can be modified.

Prerequisites

  • Domain names have been added.
  • CNAME records have been added to your domains' DNS records.

Procedure

  1. Log in to the Live console.
  2. In the navigation pane, choose Domains.
  3. Click Manage in the row of the desired ingest domain name.
  4. In the navigation pane, choose Templates > HLS.

    On the page displayed, you can see the configuration of an app, as shown in Figure 1.

    Figure 1 HLS

  5. Click Edit in the Operation column. On the page displayed, modify the HLS configuration, as shown in Figure 2.

    Figure 2 HLS

    Table 1 describes the required parameters.

    Table 1 HLS configuration

    Parameter

    Description

    App Name

    App name of the ingest domain name, which cannot be changed.

    TS Segment Length

    TS segment length for the HLS. The value must be a multiple of the GOP duration.

    The value ranges from 1 to 10, in seconds. A value that is too small may cause frame freezing (recommended: 4).

    Default value: 2

    Segments in Each M3U8 File

    Number of segments in an M3U8 file.

    The value ranges from 3 (recommended) to 10.

    Default value: 3

    Segments in First M3U8 File

    Number of segments in the first M3U8 file. The value cannot exceed the number of segments in each M3U8 file.

    The value ranges from 2 to 10.

    Default value: 2

  6. Click OK.