Help Center> Live> Cloud Live> Playback Configurations> Configuring the Stream Latency
Updated on 2024-04-17 GMT+08:00

Configuring the Stream Latency

You can configure a proper latency on the console as needed. Low latency may cause frame freezing.

Notes

  • You can configure the latency for RTMP and HTTP-FLV streams of the live app on the console. To configure the latency for other apps, submit a service ticket.
  • The keyframe interval cannot be greater than the configured latency. The actual latency is affected by factors such as the network status of the player.
  • After the stream latency is modified, you need to push the stream again for the modification to take effect.
  • This function is not recommended for LLL.

Prerequisites

  • The ingest domain name and streaming domain name have been added and associated.
  • 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 Operation column of the desired streaming domain name.
  4. In the navigation pane, choose Template > Latency.
  5. Click Edit in the Operation column.

    Figure 1 Modifying the latency

  6. On the page displayed, configure the latency, as shown in Figure 2.

    The default latency is 2 seconds. Change it to your desired latency.

    The GOP duration affects the livestream latency, as shown in Table 1.

    Note: The actual livestream latency is also affected by factors such as the network status of the player.

    Figure 2 Modifying the latency
    Table 1 Livestream latency

    Latency

    GOP Duration (1s)

    GOP Duration (2s)

    GOP Duration (4s)

    Estimated latency when Latency is set to 2 seconds

    2–3s

    2–4s

    2–6s

    Estimated latency when Latency is set to 4 seconds

    4–5s

    4–6s

    4–8s

    Estimated latency when Latency is set to 6 seconds

    6–7s

    6–8s

    6–10s

  7. Click OK.