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

fix(HLS): Fix AV sync over ad boundaries #4824

Merged
merged 5 commits into from
Dec 13, 2022

Conversation

joeyparrish
Copy link
Member

@joeyparrish joeyparrish commented Dec 13, 2022

If server-side ad segments aren't aligned, AV could get out of sync by accumulating errors in the timestampOffset of the SourceBuffers.

This improves the issue by tracking discontinuity boundaries and resetting timestampOffset to theoretical segment start times when a boundary is crossed.

Issue #4589

If server-side ad segments aren't aligned, AV could get out of sync by
accumulating errors in the timestampOffset of the SourceBuffers.

This fixes the issue by tracking discontinuity boundaries and
resetting timestampOffset to theoretical segment start times when a
boundary is crossed.

Closes shaka-project#4589
@joeyparrish
Copy link
Member Author

Looks like I neglected to update some test cases. Also, this turns out to be only a partial solution, so I took out the "closes" verb in the PR description.

@github-actions
Copy link
Contributor

Incremental code coverage: 97.44%

@avelad avelad added type: bug Something isn't working correctly component: HLS The issue involves Apple's HLS manifest format labels Dec 13, 2022
@avelad avelad added this to the v4.4 milestone Dec 13, 2022
@joeyparrish joeyparrish merged commit 35033bb into shaka-project:main Dec 13, 2022
@joeyparrish joeyparrish deleted the hls-av-sync branch December 13, 2022 18:14
joeyparrish added a commit that referenced this pull request Dec 14, 2022
If server-side ad segments aren't aligned, AV could get out of sync by
accumulating errors in the timestampOffset of the SourceBuffers.

This improves the issue by tracking discontinuity boundaries and
resetting timestampOffset to theoretical segment start times when a
boundary is crossed.

Issue #4589
joeyparrish added a commit that referenced this pull request Dec 14, 2022
If server-side ad segments aren't aligned, AV could get out of sync by
accumulating errors in the timestampOffset of the SourceBuffers.

This improves the issue by tracking discontinuity boundaries and
resetting timestampOffset to theoretical segment start times when a
boundary is crossed.

Issue #4589
joeyparrish added a commit to joeyparrish/shaka-player that referenced this pull request Jan 13, 2023
joeyparrish added a commit that referenced this pull request Jan 13, 2023
joeyparrish added a commit that referenced this pull request Jan 13, 2023
joeyparrish added a commit that referenced this pull request Jan 13, 2023
Robloche pushed a commit to Robloche/shaka-player that referenced this pull request Feb 8, 2023
If server-side ad segments aren't aligned, AV could get out of sync by
accumulating errors in the timestampOffset of the SourceBuffers.

This improves the issue by tracking discontinuity boundaries and
resetting timestampOffset to theoretical segment start times when a
boundary is crossed.

Issue shaka-project#4589
Robloche pushed a commit to Robloche/shaka-player that referenced this pull request Feb 8, 2023
@github-actions github-actions bot added the status: archived Archived and locked; will not be updated label Jul 25, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jul 25, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
component: HLS The issue involves Apple's HLS manifest format status: archived Archived and locked; will not be updated type: bug Something isn't working correctly
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants