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

Don't preload live videos #299

Merged
merged 1 commit into from
Jun 8, 2015
Merged

Don't preload live videos #299

merged 1 commit into from
Jun 8, 2015

Conversation

dmlap
Copy link
Member

@dmlap dmlap commented Jun 8, 2015

If play() was called before the media playlist has been downloaded, when the playlist finally was received we would still update media index to the live point to start buffering. We would have skipped the code that adjusted currentTime however, so playback would seem to begin at zero instead of seekable().end(0). That would cause media-timeline relative positions to be off by the live window length and things like cue points would fire 60 seconds (for example) after they should have. Now, don't preload live video at all and just seek to live immediately on play, updating the currentTime at that point.

If play() was called before the media playlist has been downloaded, when the playlist finally was received we would still update media index to the live point to start buffering. We would have skipped the code that adjusted currentTime however, so playback would seem to begin at zero instead of seekable().end(0). That would cause media-timeline relative positions to be off by the live window length and things like cue points would fire 60 seconds (for example) after they should have. Now, don't preload live video at all and just seek to live immediately on play, updating the currentTime at that point.
@imbcmdth
Copy link
Member

imbcmdth commented Jun 8, 2015

LGreatTM 👅

dmlap added a commit that referenced this pull request Jun 8, 2015
@dmlap dmlap merged commit fe47dd5 into videojs:master Jun 8, 2015
@dmlap dmlap deleted the autoplay-live branch June 8, 2015 23:02
dmlap added a commit to dmlap/videojs-contrib-hls that referenced this pull request Jun 8, 2015
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.

2 participants