-
Notifications
You must be signed in to change notification settings - Fork 7.5k
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
Captions #1749
Captions #1749
Conversation
Don't auto-add the textTrackDisplay component. Add a 'featuresNativeTrack'. Currently hardcoded to false for everything except the html5 tech. Add textTracks and addTextTrack methods to html5 tech. Proxy player level methods to tech if we're using native tracks. Fix up track menu items to work with spec tracks or vjs tracks.
Also, if text tracks are old and use numerical mode values, use custom tracks. If an html tech is using custom tracks, remove track elements so we don't accidentally show both custom and native captions. Clean up showTextTrack slightly.
textTracks is completely inside of techs but needs to be called manually because techGet requires the tech to be ready. addTextTrack, unfortunately, currently forks. If when called, it doesn't have a tech, it assumes that it's a custom implementation and does the same work that MediaTechController#addTextTrack does. Don't create a flash getter for textTracks.
Load up textTrackDisplay synchronously but have it do no work until the player is ready (see the previous commit).
Add a check that delegates to MediaTechController's methods if we're in Html5 but we are not using native tracks.
MenuButton's new 'update' method conflicted with volumeMenuButton's update method which was used to update volume levels.
Instead, default to langauge or "Unknown";
IE10 and below don't support pointer-events:none, so, we want to make sure that the big play button will be clickable.
@@ -21,7 +21,8 @@ | |||
}, | |||
"main": "./dist/video-js/video.js", | |||
"dependencies": { | |||
"videojs-swf": "4.5.3" | |||
"videojs-swf": "4.5.3", | |||
"vtt.js": "git+https://github.com/gkatsev/vtt.js.git#shim-build" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do the recent merges mean we can change this to the main lib yet?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unfortunately, not yet. All the IE8 changes went in but the shim build stuff still need to get tweaked first.
@gkatsev I'll work on some of the remaining cleanup tasks. I don't see a resolution to the last chapters related question. Were you able to figure that out? |
It may belong in text track display itself as opposed in Media tech controller
@heff pushed TODOs. Would you want me to merge master into this branch so it's easier to merge this back into master? |
Thanks for handling those! Yeah, if you have a minute to merge master you're in a better place to understand merge conflicts, but otherwise I can take care of it. |
Conflicts: src/js/media/html5.js src/js/player.js
@heff merged in. |
This PR supercedes the other PRs (#1736)