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: handle native selection of tracks #156

Merged
merged 10 commits into from
Nov 6, 2017
Merged

Conversation

dan-ziv
Copy link
Contributor

@dan-ziv dan-ziv commented Nov 2, 2017

Description of the Changes

On iOS, when choosing from the native player (AVPlayer) audio track or text track, the player UI wasn't updated.
This PR bring sync between the player UI and the native UI.

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

let audioTracks = this._getParsedAudioTracks();
let textTracks = this._getParsedTextTracks();
return videoTracks.concat(audioTracks).concat(textTracks);
_parseTracks(): void {
Copy link
Contributor

Choose a reason for hiding this comment

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

why not return tracks from here? we do the same in HLS and DASH adapters so why change convention?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done

@dan-ziv dan-ziv merged commit 6da107c into master Nov 6, 2017
@dan-ziv dan-ziv deleted the native-selection-of-captions branch November 6, 2017 12:55
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.

2 participants