Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix offline module #3652

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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