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

5.x fix: default track selection #4217

Merged
merged 2 commits into from
Mar 23, 2017
Merged

Conversation

brandonocasey
Copy link
Contributor

Description

There are currently two issues with TextTracks that have default set to true when added.

  1. The TextTrackMenu has the captions off and the new default caption button both selected
  2. The captions do not show up until after a re-selection

Specific Changes proposed

  1. is addressed by listening for player loadstart, rather than just texttrackchange as in most cases text tracks will be added before we start to listen for texttrackchange
  2. Treat addtrack and removetrack similar to how we treat change now (watch for cuechange on any showing tracks and update the display)

Requirements Checklist

  • Feature implemented / Bug fixed
  • If necessary, more likely in a feature request than a bug fix
    • Change has been verified in an actual browser (Chome, Firefox, IE)
  • Reviewed by Two Core Contributors

watch for showing tracks on addtrack and remove track
This allows default tracks or tracks with a mode of showing to be seen
when they are added (as we would expect). Rather than only being seen
after the first `modechange` event (aka a selection from the menu).
@brandonocasey brandonocasey merged commit 4653922 into 5.x Mar 23, 2017
@gkatsev gkatsev deleted the 5.x-fix/default-text-tracks branch March 24, 2017 22:34
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.

None yet

1 participant