Skip to content

Commit

Permalink
Fix offline module (#3652)
Browse files Browse the repository at this point in the history
  • Loading branch information
bbert authored Jun 1, 2021
1 parent 75b2afe commit 0379181
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 2 deletions.
2 changes: 2 additions & 0 deletions src/offline/OfflineDownload.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ function OfflineDownload(config) {
const debug = config.debug;
const manifestUpdater = config.manifestUpdater;
const baseURLController = config.baseURLController;
const segmentBaseController = config.segmentBaseController;
const constants = config.constants;
const dashConstants = config.dashConstants;
const urlUtils = config.urlUtils;
Expand Down Expand Up @@ -321,6 +322,7 @@ function OfflineDownload(config) {
baseURLController: baseURLController,
timelineConverter: timelineConverter,
adapter: adapter,
segmentBaseController: segmentBaseController,
offlineStoreController: offlineStoreController
});
_streams.push(stream);
Expand Down
2 changes: 2 additions & 0 deletions src/offline/OfflineStream.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ function OfflineStream(config) {
const dashMetrics = config.dashMetrics;
const baseURLController = config.baseURLController;
const timelineConverter = config.timelineConverter;
const segmentBaseController = config.segmentBaseController;
const offlineStoreController = config.offlineStoreController;
const manifestId = config.id;
const startedCb = config.callbacks && config.callbacks.started;
Expand Down Expand Up @@ -196,6 +197,7 @@ function OfflineStream(config) {
baseURLController: baseURLController,
timelineConverter: timelineConverter,
offlineStoreController: offlineStoreController,
segmentBaseController: segmentBaseController,
callbacks: {
completed: onStreamCompleted,
progression: onStreamProgression
Expand Down
5 changes: 3 additions & 2 deletions src/offline/OfflineStreamProcessor.js
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ function OfflineStreamProcessor(config) {
streamInfo,
timelineConverter,
dashConstants,
segmentBaseController: config.segmentBaseController,
type
});

Expand All @@ -104,7 +105,7 @@ function OfflineStreamProcessor(config) {
requestModifier: RequestModifier(context).getInstance(),
dashConstants: dashConstants,
constants: constants,
segmentsController,
segmentsController: segmentsController,
urlUtils: URLUtils(context).getInstance()
});

Expand All @@ -119,7 +120,7 @@ function OfflineStreamProcessor(config) {
events: events,
eventBus: eventBus,
errors: errors,
segmentsController
segmentsController: segmentsController
});

fragmentModel = FragmentModel(context).create({
Expand Down
2 changes: 2 additions & 0 deletions src/offline/controllers/OfflineController.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ function OfflineController(config) {
const playbackController = config.playbackController;
const dashMetrics = config.dashMetrics;
const timelineConverter = config.timelineConverter;
const segmentBaseController = config.segmentBaseController;
const adapter = config.adapter;
const manifestUpdater = config.manifestUpdater;
const baseURLController = config.baseURLController;
Expand Down Expand Up @@ -121,6 +122,7 @@ function OfflineController(config) {
dashMetrics: dashMetrics,
timelineConverter: timelineConverter,
errHandler: errHandler,
segmentBaseController: segmentBaseController,
offlineStoreController: offlineStoreController,
debug: debug,
constants: constants,
Expand Down
1 change: 1 addition & 0 deletions src/streaming/MediaPlayer.js
Original file line number Diff line number Diff line change
Expand Up @@ -2147,6 +2147,7 @@ function MediaPlayer() {
errHandler: errHandler,
dashMetrics: dashMetrics,
timelineConverter: timelineConverter,
segmentBaseController: segmentBaseController,
schemeLoaderFactory: schemeLoaderFactory,
eventBus: eventBus,
events: Events,
Expand Down

0 comments on commit 0379181

Please sign in to comment.