Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 1 commit into from
Feb 7, 2018

Conversation

mmarciel
Copy link
Contributor

@mmarciel mmarciel commented Feb 5, 2018

This PR adds a new parameter 'r' to specify relative start time of a live stream as specified in #2330. 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.

@sandersaares
Copy link
Member

A useful convention often used with time offsets is that negative offset means start from the other end. Perhaps this might also be useful here? That is, so one could specify ?r=-10 to start 10 seconds from the end of the playback window (from the live edge).

@epiclabsDASH
Copy link
Contributor

Good point, @sandersaares, I agree that behavior could be useful, both for r and s parameter. We can skipt t parameter because it is focused on absolute times.

We will push another PR with that change.

Thanks

@epiclabsDASH epiclabsDASH added this to the v2.6.6 milestone Feb 6, 2018
@epiclabsDASH epiclabsDASH merged commit 56d5b91 into Dash-Industry-Forum:development Feb 7, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants