Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
brandonocasey committed Nov 4, 2021
1 parent 25c33ca commit 1c8acd7
Show file tree
Hide file tree
Showing 3 changed files with 435 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/master-playlist-controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ import {
import { codecsForPlaylist, unwrapCodecList, codecCount } from './util/codecs.js';
import { createMediaTypes, setupMediaGroups } from './media-groups';
import logger from './util/logger';
import MediaGroupController from './media-group-controller.js';

const ABORT_EARLY_BLACKLIST_SECONDS = 60 * 2;

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

this.mediaGroupController_ = new MediaGroupController({
tech,
mainPlaylistLoader: this.masterPlaylistLoader_
});

// setup segment loaders
// combined audio/video or just video when alternate audio track is selected
this.mainSegmentLoader_ =
Expand Down
Loading

0 comments on commit 1c8acd7

Please sign in to comment.