Time Shifting

Last update:2022-07-14 17:15:21

Time shifting empowers your viewers to have a playback of previous content if it has already been recorded on Object Storage. Viewers can start watching a live stream at an earlier time rather than only current time.

How to use

1. Enable Time Shifting

Firstly, you have to enable time shifting by carrying a parameter wsSeek in the pushing URL.

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

wsSeek=on enables time shifting and wsSeek=off will disable it. The system default is wsSeek=off.

2. Define the duration

  • Including start parameter wsStart and end parameter wsEnd at the end of the request URL. For example, if you want to request a stream starting from December 16, 2020 at 16:00 to December 16, 2020 at 17:00
http://live.test.com/live-livestream.m3u8?wsStart=20201216160000&wsEnd =20201216170000
  • Including beginbacktime at the end of the request URL. For example, if you only want to request a content that is 1 hour old.
http://live.test.com/live-livestream.m3u8?beginbacktime=3600

3. Parameters

Parameter Description
wsSeek Enable or disable timeshifting.
wsStart Begining of the timeshifting, format yyyyMMddHHmmss, for example: 20201216170130.
wsEnd End of the timeshifting, format yyyyMMddHHmmss, for example: 20201216170530.
beginbacktime The timeshifting duration from an “old” time to now, unit seconds.
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!