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: default subtitles not enabled #5608

merged 2 commits into from Nov 29, 2018


Copy link

@alex-barstow alex-barstow commented Nov 20, 2018


This is a follow-up to this fix in VHS, after which default in-manifest subtitles were still not being correctly enabled. The reason is because video.js's text track preselection logic was running before the media groups were set up in VHS.


Text track preselection should happen on 'loadedmetadata' instead of 'loadstart'. According to the HTML spec, text track data is available on 'loadedmetadata', so we should be waiting until then to make preselection decisions.

Test content w/ default subtitles:

Copy link

@gkatsev gkatsev left a comment

This totally makes sense.


@alex-barstow alex-barstow force-pushed the fix-default-captions branch from 627accc to 39f6a21 Nov 29, 2018
@gkatsev gkatsev merged commit 8329e64 into videojs:master Nov 29, 2018
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

2 participants