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

Content-Steering fix: Keep bit identical subtitle content #5365

Merged
merged 1 commit into from Apr 5, 2023

Conversation

robwalch
Copy link
Collaborator

@robwalch robwalch commented Apr 1, 2023

This PR will...

Do not clear subtitle cues or tracked fragments when updating subtitle tracks with identical tracks.

Why is this Pull Request needed?

When Content Steering forces a Pathway change, the player updates levels and tracks. Content from matching playlists (where STABLE-RENDITION-ID match) should not be cleared as these playlists are bit-identical.

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

This change also covers tracks with matching attributes. The assumptions is a new list with the exact same languages and characteristics should match the current list for the same Multivariant Playlist.

Resolves issues:

Fixes #5361

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.4.0 milestone Apr 1, 2023

this.tracks.forEach((track, index) => {
let textTrack: TextTrack | undefined;
if (index < inUseTracks.length) {
if (inUseTracks && index < inUseTracks.length) {
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can still skip clearCurrentCues below if inUseTracks[i] and track are bit-identical (should be a strict STABLE-RENDITION-ID comparison).

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Deferring to #5371

@robwalch robwalch force-pushed the bugfix/stable-rendition-subtitle-switching branch from 67a28ab to 6e19b96 Compare April 4, 2023 02:08
@robwalch robwalch merged commit 9cafa43 into master Apr 5, 2023
16 checks passed
@robwalch robwalch deleted the bugfix/stable-rendition-subtitle-switching branch April 5, 2023 01:23
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.

v1.4.0-beta Pathway switching causes subtitles to be cleared and reloaded
1 participant