Updated on 2024-09-27 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

Procedure

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

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

    If you have other applications, they are not displayed by default. You need to submit a service ticketto display them on the page.

    Figure 1 HLS

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

    Figure 2 HLS

    Table 1 describes the parameters.

    Table 1 HLS configuration

    Parameter

    Description

    App Name

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

    If the ingestion domain name contains applications other than live but no service ticket is submitted to display them, the configuration of live will apply to these applications.

    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.