Help Center/ Live/ Cloud Live/ Playback/ Configuring Stream Delay
Updated on 2024-09-27 GMT+08:00

Configuring Stream Delay

You can configure a proper stream delay on the console. Low delay may cause frame freezing.

Notes

  • You can configure the stream delay for RTMP and HTTP-FLV streams of the live app on the console. To configure the stream delay for other apps, submit a service ticket.
  • The GOP of the streaming end cannot be greater than the configured delay. The actual delay is influenced by factors including the player's network conditions.
  • After the stream delay is modified, you need to push the stream again for the modification to take effect.
  • If the stream delay is set to 2s, the playback experience of HLS videos will be affected. For example, the playback will start in seconds. To avoid poor user experience, set a longer stream delay (4s or 6s).
  • This function is not recommended for LLL.

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 streaming domain name.
  4. In the navigation pane, choose Templates > Stream Delay.
  5. Click Edit in the Operation column.

    Figure 1 Modifying the stream delay

  6. On the page displayed, set Delay, as shown in Figure 2.

    The default delay is 2s. You can change it to 4s or 6s. The GOP duration affects the livestream delay, as shown in Table 1.

    Note: The actual livestream delay is also influenced by factors including the player's network conditions.

    Figure 2 Modifying the delay
    Table 1 Livestream delay

    Delay

    GOP Duration (1s)

    GOP Duration (2s)

    GOP Duration (4s)

    Estimated delay when Delay is set to 2s

    2–3s

    2–4s

    2–6s

    Estimated delay when Delay is set to 4s

    4–5s

    4–6s

    4–8s

    Estimated delay when Delay is set to 6s

    6–7s

    6–8s

    6–10s

  7. Click OK.