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
merged 2 commits into from
Nov 29, 2018

Conversation

alex-barstow
Copy link
Contributor

Description

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.

Solution

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: https://bitdash-a.akamaihd.net/content/sintel/hls/playlist.m3u8

Copy link
Member

@gkatsev gkatsev left a comment

Choose a reason for hiding this comment

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

This totally makes sense.

@gkatsev gkatsev merged commit 8329e64 into videojs:master Nov 29, 2018
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.

2 participants