Delayed Playback

Last updated: 2021-08-12 10:03:55

Delayed playback is a feature that allows you to delay the playing of streams. It is mainly used in important live streaming events to allow organizers time to handle emergencies. You can enable this feature through parameter setting.

Notes

You can enable delayed playback via two methods:

Note:

The API method is not recommended because calling an API involves configuration caching, which makes it difficult to estimate when the feature takes effect. You are advised to enable the feature using the second method.

Preparations

  1. Activate CSS and complete identity verification.
  2. Log in to the CSS console, select Domain Management, and click Add Domain Name to add a push domain name. For more information, please see Adding Domain Name.

Push Configuration

  1. Log in to the CSS console, go to CSS Toolkit > Address Generator, select Push Domain for Domain Type, and click Generate Address.
  2. Add txDelayTime to the end of the push address, and push streams via OBS. For detailed directions, please see Push via OBS.
    Note:

    Set txDelayTime to the number of seconds for which you want to delay playback. The value must be an integer and cannot exceed 600.

Delayed Playback

  1. Log in to the CSS console, go to CSS Toolkit > Address Generator, select Playback Domain for Domain Type, and click Generate Address.

  2. Use VLC, FFmpeg, or other tools for playback. For details, please see CSS Playback.

    In the figure above, the delay time set for playback via the txDelayTime parameter in the push address is 30s, and the actual playback latency is 34s, which indicates that the delayed playback feature has taken effect.