Flexible Playback (start | end)
The start time is mandatory but the end time is not.
- If no end time is provided, the player
directly plays the live stream. The stream begins at the time set in the
startparameter instead of the default DVR set in the configuration.
- The start time in this case can be inside or outside the DVR window. If the start time is outside the DVR window, the playback starts from the available start of the stream. If the start time is inside the DVR window, the stream starts from the specified position inside the DVR window.
If the start and end times are both provided, both should be inside the DVR window. If not, an error message appears.
T in the
format is in the string to separate the time from the date.
The clip duration might not exactly match the specified time in start and end parameters because the segments are generated based on keyframe intervals.
For example, having keyframe interval of 2s with start=1000000000 and end=1000000025 might result in a clip of duration 24s rather expected duration of 25s. This is because the last keyframe in the required clip is present at the 24th second. You can use a keyframe interval that is exactly divisible by segment duration and required clip duration to obtain the correct clip output. In the above example, you can use a keyframe interval of 1s.