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

bugfix: DEFAULT=YES on caption tracks was not being respected. #3781

Merged
merged 1 commit into from Apr 16, 2021

Conversation

itsjamie
Copy link
Collaborator

This PR will...

Ensure that the default track is selected after playback.

Why is this Pull Request needed?

Subtitle groups were not respected prior to v1, and now that they are, there was just this tiny gap in the implementation.

By moving when the tracks in the group are populated, the functions work as intended, selecting the default track.

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

Impact analysis on the change.

Resolves issues:

Closes #3780

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

Reason for this was because the subtitle grouping wasn't populating the
tracks before the findTrackId function was called. So, it was looking
over an empty array on the first invocation of the function.

By moving it, it now has the correct behaviour and the default track is
selected.

Closes #3780.
@robwalch robwalch added this to the 1.0.2 milestone Apr 15, 2021
@robwalch robwalch added this to Top priorities in Release Planning and Backlog via automation Apr 15, 2021
@robwalch robwalch merged commit 2274d91 into master Apr 16, 2021
@robwalch robwalch deleted the bugfix/3780 branch April 16, 2021 16:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Release Planning and Backlog
  
Top priorities
Development

Successfully merging this pull request may close these issues.

V1 regression: DEFAULT flag for subtitles / captions no-longer respected
2 participants