Skip to content

Commit

Permalink
Merge pull request video-dev#1553 from jinzito/text-track-language-co…
Browse files Browse the repository at this point in the history
…de-fix

Get right language code from config like 'Label' parameter
  • Loading branch information
johnBartos authored Feb 9, 2018
2 parents c8eeaec + f372928 commit 5762e20
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/controller/timeline-controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ class TimelineController extends EventHandler {
//Enable reuse of existing text track.
let existingTrack = this.getExistingTrack(track);
if (!existingTrack) {
const textTrack = this.createTextTrack('captions', this.config['captionsTextTrack' + track + 'Label'], this.config.captionsTextTrack1LanguageCode);
const textTrack = this.createTextTrack('captions', this.config['captionsTextTrack' + track + 'Label'], this.config['captionsTextTrack' + track + 'LanguageCode']);
if (textTrack) {
textTrack[trackVar] = true;
this[trackVar] = textTrack;
Expand Down

0 comments on commit 5762e20

Please sign in to comment.