Skip to content

Commit

Permalink
fix(FEC-10878): order of text captions are broken on Safari browser (#…
Browse files Browse the repository at this point in the history
…527)

Issue: config used previous config
Solution: change the config to new config
  • Loading branch information
Yuvalke committed Jan 6, 2021
1 parent 2b9bbc7 commit 37bfb4f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/player.js
Original file line number Diff line number Diff line change
Expand Up @@ -2182,7 +2182,7 @@ export default class Player extends FakeEventTarget {
*/
_updateTracks(tracks: Array<Track>): void {
Player._logger.debug('Tracks changed', tracks);
if (this.config.playback.useNativeTextTrack) {
if (this.config.text.useNativeTextTrack) {
this._eventManager.listen(this._engine, CustomEventType.TEXT_TRACK_ADDED, (event: FakeEvent) => this._onTextTrackAdded(event));
}
this._tracks = tracks.concat(this._externalCaptionsHandler.getExternalTracks(tracks));
Expand Down

0 comments on commit 37bfb4f

Please sign in to comment.