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.
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
http://live.test.com/live-livestream.m3u8?wsStart=20201216160000&wsEnd =20201216170000
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. |