Skip to content
This repository has been archived by the owner on Jan 12, 2019. It is now read-only.

Add text tracks for closed captions listed in playlist #1096

Merged
merged 3 commits into from
Aug 19, 2017

Conversation

squarebracket
Copy link
Contributor

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). This
PR 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

  • Feature implemented / Bug fixed
  • If necessary, more likely in a feature request than a bug fix
  • Reviewed by Two Core Contributors

@mjneil mjneil added the blocked label Aug 7, 2017
@mjneil
Copy link
Contributor

mjneil commented Aug 7, 2017

enabled: false,
language: properties.language,
label
}, true).track;
Copy link
Contributor

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

Copy link
Contributor

Choose a reason for hiding this comment

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

bump :)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

derp derp, thanks.

@squarebracket
Copy link
Contributor Author

just found a problem -- need to ignore CEA708 tracks since we don't support them.

@mjneil
Copy link
Contributor

mjneil commented Aug 14, 2017

Oh those can be specified in manifest as well. Is there a way to tell them apart in manifest?

@squarebracket
Copy link
Contributor Author

Yeah, by inspecting the value of INSTREAM-ID. For 608 the values are CC1-CC4, for 708 the values are SERVICE1-SERVICE-64. We can just do a regex match.

@squarebracket squarebracket force-pushed the add-text-tracks-for-captions branch 3 times, most recently from a98050e to 9e571f0 Compare August 18, 2017 20:04
@squarebracket squarebracket force-pushed the add-text-tracks-for-captions branch from 9e571f0 to 013ff8b Compare August 18, 2017 21:04
@squarebracket
Copy link
Contributor Author

I'm doing some manual testing and I'm getting a 708 track added, looking into it...

@squarebracket
Copy link
Contributor Author

Nevermind.. Was mistakenly using wrong code 🙄

@mjneil mjneil merged commit fbc98a6 into videojs:master Aug 19, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants