Time Shifting

Last update:2024-08-02 14:06:30

Time-shifting enables viewers to replay previously recorded content from Object Storage, allowing them to start a live stream from an earlier timestamp instead of the current moment.

How to Enable Time-Shifting

To activate time-shifting, include the wsSeek parameter when pushing a stream to CDNetworks. Use wsSeek=on to enable and wsSeek=off to disable. For example:

rtmp://push.test.com/live/livestream?wsSeek=on

Set Time-Shifting Duration

You can control the rewind and replay duration of live streams using two methods:

By Start Time and End Time
Use wsStart and wsEnd parameters to set the desired start and end times in the format yyyyMMddHHmmss. For example, to request a stream starting at 16:00 on December 16, 2020, and ending at 17:00 on the same day, use:

http://live.test.com/live-livestream.m3u8?wsStart=20201216160000&wsEnd=20201216170000

By Duration
Use the beginbacktime parameter to specify playback from a certain point in the past (in seconds). For example:

http://live.test.com/live-livestream.m3u8?beginbacktime=3600

Note:
– Time-shifting is not enabled by default. Contact customer support to enable it
– This feature is exclusive to HLS streaming.
– Requires both the Object Storage Service and Live Recording.

Is the content of this document helpful to you?
Yes
I have suggestion
Submitted successfully! Thank you very much for your feedback, we will continue to strive to do better!