Skip to content

Fix unnecessary setting of MediaSource duration with stale value #7326

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

Draft
wants to merge 1 commit into
base: enhancement/sourcebuffer-timestamp-offset
Choose a base branch
from

Conversation

robwalch
Copy link
Collaborator

@robwalch robwalch commented Jun 16, 2025

This PR will...

Wait to check if duration and seekable range should be set until any blocking operation is complete.

Why is this Pull Request needed?

Ensures that MediaSource duration is not set to a value less than its current value. Doing so invokes buffer ejection and can result in the next append failing because it puts the source in an updating state.

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

Branched from #7311, these changes should be rebased once that PR is merged.

Resolves issues:

Fixes #7321

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.7.0 milestone Jun 16, 2025
@robwalch robwalch force-pushed the bugfix/prevent-mediasource-duration-ejection branch 2 times, most recently from 5376d38 to e58a321 Compare June 17, 2025 22:54
@robwalch robwalch force-pushed the bugfix/prevent-mediasource-duration-ejection branch from e58a321 to b28aa6d Compare June 18, 2025 22:57
@robwalch robwalch modified the milestones: 1.7.0, 1.6.6 Jun 19, 2025
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.

1 participant