-
Notifications
You must be signed in to change notification settings - Fork 793
Add text tracks for closed captions listed in playlist #1096
Add text tracks for closed captions listed in playlist #1096
Conversation
8e485de
to
3983db2
Compare
Blocked on |
src/master-playlist-controller.js
Outdated
enabled: false, | ||
language: properties.language, | ||
label | ||
}, true).track; |
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.
If we change this parameter from true
to false
, video.js will take care of removing the track on source changes
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.
bump :)
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.
derp derp, thanks.
just found a problem -- need to ignore CEA708 tracks since we don't support them. |
Oh those can be specified in manifest as well. Is there a way to tell them apart in manifest? |
Yeah, by inspecting the value of |
a98050e
to
9e571f0
Compare
added to fix duplicate caption processing problem
9e571f0
to
013ff8b
Compare
I'm doing some manual testing and I'm getting a 708 track added, looking into it... |
Nevermind.. Was mistakenly using wrong code 🙄 |
Description
Currently, text tracks for captions are created by
videojs-contrib-media-sources. With the open PRs for multiple caption
track support in mux.js
and contrib-media-sources
text tracks are simply created using their caption track (
CCn
). ThisPR creates tracks at playlist read time. Afterwards, contrib-media-sources will look to see if a text track that has the ID of
CCn
exists, and if so, it will use that track.Specific Changes proposed
Right after subtitle text tracks are created, closed caption text tracks are created.
Requirements Checklist