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

feat: use off caption from playkit #60

Merged
merged 3 commits into from
Oct 2, 2017
Merged

feat: use off caption from playkit #60

merged 3 commits into from
Oct 2, 2017

Conversation

OrenMe
Copy link
Contributor

@OrenMe OrenMe commented Sep 27, 2017

Description of the Changes

PlayKit creates a pseudo off text track when there are text tracks available.
This is for connivance only and it internally just tells PlayKit to call hideTextTrack, but it supports the model of emitting the text track change with the selected track where in case of off option it will properly add it to the event payload instead of just throwing null.
Depends on kaltura/playkit-js#118

CheckLists

  • changes have been done against master branch, and PR does not conflict
  • new unit / functional tests have been added (whenever applicable)
  • test are passing in local environment
  • Travis tests are passing (or test results are not worse than on master branch :))
  • Docs have been updated

*
* @param {(Object | string)} textTrack - text track or 'off' string
* @param {(Object | string)} textTrack - text track
* @returns {void}
* @memberof LanguageControl
*/
onCaptionsChange(textTrack: Object | string): void {
Copy link
Contributor

Choose a reason for hiding this comment

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

Now the param type is only Object

@dan-ziv dan-ziv merged commit c8854ec into master Oct 2, 2017
@dan-ziv dan-ziv deleted the offCaption branch October 2, 2017 09:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

None yet

2 participants