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

Init segment should not be treated as start segment #2196

Merged
merged 1 commit into from Mar 27, 2019

Conversation

mikrohard
Copy link
Contributor

@mikrohard mikrohard commented Mar 27, 2019

This PR will...

Init segment shouldn't be considered as a requested start fragment.

Why is this Pull Request needed?

We are preparing to switch some streams from HLS TS to HLS MP4 (to use with Widevine/Playready). While doing this I noticed that hls.js didn't start LIVE streams with first video segment (0.m4s) but instead requested the last video segment in playlist first (2.m4s). After some debugging I found out that due to init segment being requested first, the this.startFragRequested = true; flag has been set. This caused the _ensureFragmentAtLivePoint trying to find the correct fragment without having any previous fragment as reference. By not setting the startFragRequested for initSegment this issue is fixed.

Are there any points in the code the reviewer needs to double check?

Does it break anything?

Resolves issues:

Wrong start video fragment requested in LIVE MP4 HLS streams.

Checklist

  • changes have been done against master branch, and PR does not conflict
  • new unit / functional tests have been added (whenever applicable)
  • API or design changes are documented in API.md

@johnBartos johnBartos added this to In progress in 0.13.0 via automation Mar 27, 2019
@johnBartos johnBartos added the Bug label Mar 27, 2019
@johnBartos johnBartos added this to the 0.13.0 milestone Mar 27, 2019
@johnBartos
Copy link
Collaborator

Good find, thanks!

@johnBartos johnBartos merged commit 33de541 into video-dev:master Mar 27, 2019
0.13.0 automation moved this from In progress to Done Mar 27, 2019
@johnBartos johnBartos modified the milestones: 0.13.0, 0.12.5 Jul 26, 2019
@johnBartos johnBartos removed this from Done in 0.13.0 Jul 26, 2019
@johnBartos johnBartos modified the milestones: 0.12.5, 0.13.0 Aug 13, 2019
@robwalch robwalch added this to Done in 0.13.0 Oct 28, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
No open projects
0.13.0
  
Done
Development

Successfully merging this pull request may close these issues.

None yet

2 participants