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(FEC-8594): when casting via Play on TV button the Captions/Audio is not displayed #159

Merged
merged 7 commits into from
Nov 4, 2018

Conversation

dan-ziv
Copy link
Contributor

@dan-ziv dan-ziv commented Oct 22, 2018

Description of the Changes

If the player has started to play it will return the current played language.
Otherwise, it will return the configured language.

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

@dan-ziv dan-ziv self-assigned this Oct 22, 2018
OrenMe
OrenMe previously requested changes Oct 25, 2018
* @returns {?string} - The audio language or undefined.
*/
function getAudioLanguage(player: KalturaPlayer): ?string {
if (player.currentTime > 0) {
Copy link
Contributor

Choose a reason for hiding this comment

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

why do you need if (player.currentTime > 0) { check? if player never started playing then getActiveTracks will return nothing and you can rely on that

@dan-ziv dan-ziv merged commit 6ae6253 into master Nov 4, 2018
@dan-ziv dan-ziv deleted the FEC-8594 branch November 4, 2018 14:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants