Skip to content

#2330 Add 'r' parameter to specify relative start time in a live stream

Vinay Rosenberg requested to merge github/fork/mmarciel/r_parameter into development

Created by: mmarciel

This PR adds a new parameter 'r' to specify relative start time of a live stream as specified in #2330 (closed). This parameter has a value between 0 and the DVR window size in seconds.

Also, it fixes a problem when the live stream play time was at the beginning of the DVR window, as it starting seeking from time to time. This was due to currentTime of the player is updated at the 'timeupdate' event. This event can take up 250ms to be fired. Therefore, when checking if the currentTime is behind the DVR window size, the delayed of the event is taken into account.

Merge request reports