Last update:2024-02-08 09:55:52
Time-shifting offers your viewers the flexibility to replay previously recorded content from Object Storage, allowing them to start a live stream from an earlier timestamp rather than being limited to the present moment.
To activate time-shifting, include the wsSeek parameter when pushing a stream to CDNetworks. Use wsSeek=on
to enable and wsSeek=off
to disable. Example
rtmp://push.test.com/live/livestream?wsSeek=on
You can control the rewind and replay duration of live streams using two methods:
By Start Time and End Time
Add the parameters wsStart
and wsEnd
to the stream request URL to designate the desired start and end times, in the format yyyyMMddHHmmss
. For instance, 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
Add beginbacktime
to your request URL to playback from a specific point in the past, unit in seconds. For instance, to access content that is an hour old, use:
http://live.test.com/live-livestream.m3u8?beginbacktime=3600
Note:
– Time-shifting is not defaultly enabled. To enable this feature, please contact our dedicated customer support team.
– This feature is exclusively for HLS streaming.
– Use of this feature requires both the Object Storage Service and Live Recording.