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

Skip large video start gaps using GAP flag #5816

Merged
merged 1 commit into from
Sep 12, 2023

Conversation

robwalch
Copy link
Collaborator

@robwalch robwalch commented Sep 12, 2023

This PR will...

Skip large video start gaps using the Fragment gap flag.

Why is this Pull Request needed?

The gap-controller only skips start gaps less than two seconds in length. HLS.js can jump larger gaps and will for any fragment marked with a gap flag. There are already cases where this flag is added when segments are found to be a) completely missing all video samples or b) dropping initial samples because of not starting with a key-frame. This change adds the case where nothing is dropped from the segment, but it still starts more than 2 seconds after the start of the audio track.

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

Resolves issues:

Fixes #4975, #4066

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

@robwalch robwalch added this to the 1.5.0 milestone Sep 12, 2023
@robwalch robwalch marked this pull request as draft September 12, 2023 04:39
@robwalch robwalch force-pushed the bugfix/skip-large-video-start-gap branch from 373fa49 to 607f527 Compare September 12, 2023 04:42
@robwalch robwalch marked this pull request as ready for review September 12, 2023 20:17
@robwalch robwalch merged commit 747dbe5 into master Sep 12, 2023
15 of 16 checks passed
@robwalch robwalch deleted the bugfix/skip-large-video-start-gap branch September 12, 2023 20:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

BufferStalledError at the beginning of the video
1 participant