Skip to content
This repository has been archived by the owner on Jan 12, 2019. It is now read-only.

Commit

Permalink
merge fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
mjneil committed Mar 15, 2017
1 parent 1610a1f commit 4654fc1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
6 changes: 3 additions & 3 deletions src/master-playlist-controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -274,8 +274,9 @@ export class MasterPlaylistController extends videojs.EventTarget {
loaderType: 'audio'
}));

segmentLoaderOptions.loaderType = 'vtt';
this.subtitleSegmentLoader_ = new VTTSegmentLoader(segmentLoaderOptions);
this.subtitleSegmentLoader_ = new VTTSegmentLoader(videojs.mergeOptions(segmentLoaderOptions, {
loaderType: 'vtt'
}));

this.decrypter_.onmessage = (event) => {
if (event.data.source === 'main') {
Expand Down Expand Up @@ -623,7 +624,6 @@ export class MasterPlaylistController extends videojs.EventTarget {

for (let mediaGroup in mediaGroups.SUBTITLES) {
if (!this.subtitleGroups_.groups[mediaGroup]) {
// this.subtitleGroups_.groups[mediaGroup] = { unforced: [], forced: {} };
this.subtitleGroups_.groups[mediaGroup] = [];
}

Expand Down
2 changes: 0 additions & 2 deletions src/vtt-segment-loader.js
Original file line number Diff line number Diff line change
Expand Up @@ -1130,8 +1130,6 @@ export default class VTTSegmentLoader extends videojs.EventTarget {
time: segment.start
};
}

// TODO - adjust other segments with new info
}

/**
Expand Down

0 comments on commit 4654fc1

Please sign in to comment.