From b8b518af613807d2f9dd4ccd7028efd9aca64d6b Mon Sep 17 00:00:00 2001 From: odedhutzler Date: Mon, 15 Jan 2018 11:32:31 +0200 Subject: [PATCH 1/2] source type update --- src/dash-adapter.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dash-adapter.js b/src/dash-adapter.js index 0becc7b0..5d170a43 100644 --- a/src/dash-adapter.js +++ b/src/dash-adapter.js @@ -126,7 +126,7 @@ export default class DashAdapter extends BaseMediaSourceAdapter { * @returns {IMediaSourceAdapter} - New instance of the run time media source adapter. * @static */ - static createAdapter(videoElement: HTMLVideoElement, source: Source, config: Object): IMediaSourceAdapter { + static createAdapter(videoElement: HTMLVideoElement, source: PKMediaSourceObject, config: Object): IMediaSourceAdapter { let dashConfig = {}; if (Utils.Object.hasPropertyPath(config, 'playback.options.html5.dash')) { dashConfig = config.playback.options.html5.dash; From ab8933a18c0db1daddc087429e533696e3fed62d Mon Sep 17 00:00:00 2001 From: Dan Ziv Date: Tue, 16 Jan 2018 15:42:05 +0200 Subject: [PATCH 2/2] Update dash-adapter.js --- src/dash-adapter.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/dash-adapter.js b/src/dash-adapter.js index 5d170a43..a3dddd67 100644 --- a/src/dash-adapter.js +++ b/src/dash-adapter.js @@ -121,7 +121,7 @@ export default class DashAdapter extends BaseMediaSourceAdapter { * Factory method to create media source adapter. * @function createAdapter * @param {HTMLVideoElement} videoElement - The video element that the media source adapter work with. - * @param {Object} source - The source Object. + * @param {PKMediaSourceObject} source - The source Object. * @param {Object} config - The player configuration. * @returns {IMediaSourceAdapter} - New instance of the run time media source adapter. * @static @@ -195,10 +195,10 @@ export default class DashAdapter extends BaseMediaSourceAdapter { /** * @constructor * @param {HTMLVideoElement} videoElement - The video element which bind to the dash adapter - * @param {Object} source - The source object + * @param {PKMediaSourceObject} source - The source object * @param {Object} config - The media source adapter configuration */ - constructor(videoElement: HTMLVideoElement, source: Object, config: Object = {}) { + constructor(videoElement: HTMLVideoElement, source: PKMediaSourceObject, config: Object = {}) { DashAdapter._logger.debug('Creating adapter. Shaka version: ' + shaka.Player.version); super(videoElement, source, config); this._config = Utils.Object.mergeDeep({}, this._config, DefaultConfig);