Skip to content
This repository has been archived by the owner on Jan 12, 2019. It is now read-only.

Live seeking #308

Merged
merged 3 commits into from
Jun 15, 2015
Merged

Live seeking #308

merged 3 commits into from
Jun 15, 2015

Conversation

dmlap
Copy link
Member

@dmlap dmlap commented Jun 15, 2015

  • Fix an issue where getMediaIndexByTime was returning -1 at playlist boundaries
  • Account for expired segments when seeking
  • Fix a condition that would delay playback startup for live streams

bc-bbay and others added 3 commits June 15, 2015 12:22
It should correctly return the first or last segment in the playlist.
Deprecate getMediaIndexByTime and replace it with a PlaylistLoader.getMediaIndexForTime_ that considers expired content in live playlists. Fix an issues that would allow the return value to be less than zero or greater than the index of the last available media segment. Currently, this code does not take into account rounding of segment durations in HLS v3.
When you first called play() on a live stream, the seek wouldn't complete because of a condition in fillBuffer() that prevented buffering until the player had started. Allow fillBuffer() to begin buffering in a live stream at a specified position, which ensures drainBuffer() will clean up the seek correctly.
@gkatsev
Copy link
Member

gkatsev commented Jun 15, 2015

LGTM

@bc-bbay
Copy link
Contributor

bc-bbay commented Jun 15, 2015

Looks great! Thanks a lot, David!

dmlap added a commit to dmlap/videojs-contrib-hls that referenced this pull request Jun 15, 2015
@dmlap dmlap merged commit 6b05241 into videojs:master Jun 15, 2015
@dmlap dmlap deleted the live-seeking branch June 15, 2015 17:55
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants