Skip to content

Commit 86a295c

Browse files
committed
test
1 parent 25c33ca commit 86a295c

File tree

3 files changed

+435
-0
lines changed

3 files changed

+435
-0
lines changed

src/master-playlist-controller.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ import {
2525
import { codecsForPlaylist, unwrapCodecList, codecCount } from './util/codecs.js';
2626
import { createMediaTypes, setupMediaGroups } from './media-groups';
2727
import logger from './util/logger';
28+
import MediaGroupController from './media-group-controller.js';
2829

2930
const ABORT_EARLY_BLACKLIST_SECONDS = 60 * 2;
3031

@@ -266,6 +267,11 @@ export class MasterPlaylistController extends videojs.EventTarget {
266267
new PlaylistLoader(src, this.vhs_, this.requestOptions_);
267268
this.setupMasterPlaylistLoaderListeners_();
268269

270+
this.mediaGroupController_ = new MediaGroupController({
271+
tech,
272+
rootPlaylistLoader: this.masterPlaylistLoader_
273+
});
274+
269275
// setup segment loaders
270276
// combined audio/video or just video when alternate audio track is selected
271277
this.mainSegmentLoader_ =

0 commit comments

Comments
 (0)