-
Notifications
You must be signed in to change notification settings - Fork 51
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
* change `loadPlaylistByEntryList` api to get array of objects instead of strings (backward compatible) * load a playlist item using `mediaInfo` object instead of `entryId` string * update a playlist item poster using `addKalturaPoster` api * update item sources using dedicated api instead of `mergeDeep` which causes side effects (e.g poster overriding) Depends on kaltura/playkit-js-providers#73
- Loading branch information
Showing
19 changed files
with
1,943 additions
and
716 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
// @flow | ||
import {PlaylistItem} from '../../src/common/playlist/playlist-item'; | ||
|
||
/** | ||
* @typedef {Object} KPPlaylistOptions | ||
* @property {boolean} autoContinue - Whether to continue to the next item automatically | ||
*/ | ||
type _KPPlaylistOptions = { | ||
autoContinue: boolean | ||
}; | ||
declare type KPPlaylistOptions = _KPPlaylistOptions; | ||
|
||
/** | ||
* @typedef {Object} KPPlaylistCountdownOptions | ||
* @param {number} [timeToShow] - When the countdown will appear (by default is towards the end) | ||
* @param {number} [duration=10] - How match time the countdown will appear | ||
* @param {boolean} [showing=true] - Whether to show the countdown | ||
*/ | ||
type _KPPlaylistCountdownOptions = { | ||
timeToShow?: number, | ||
duration: number, | ||
showing: boolean | ||
}; | ||
declare type KPPlaylistCountdownOptions = _KPPlaylistCountdownOptions; | ||
|
||
/** | ||
* @typedef {Object} KPPlaylistConfigObject | ||
* @param {KPPlaylistOptions} options - The playlist options | ||
* @param {KPPlaylistCountdownOptions} countdown - The playlist countdown config | ||
* @param {Array<PlaylistItem>} items - The playlist items | ||
*/ | ||
type _KPPlaylistConfigObject = { | ||
options: KPPlaylistOptions, | ||
countdown: KPPlaylistCountdownOptions, | ||
items: Array<PlaylistItem> | ||
}; | ||
declare type KPPlaylistConfigObject = _KPPlaylistConfigObject; | ||
|
||
/** | ||
* @typedef {Object} KPPlaylistConfigObject | ||
* @param {string} id - The playlist id | ||
* @param {ProviderPlaylistMetadataObject} metadata - The playlist metadata | ||
* @param {KPPlaylistOptions} options - The playlist options | ||
* @param {KPPlaylistCountdownOptions} countdown - The playlist countdown config | ||
* @param {Array<PlaylistItem>} items - The playlist items | ||
*/ | ||
type _KPPlaylistObject = { | ||
id: string, | ||
metadata: ProviderPlaylistMetadataObject, | ||
poster?: string, | ||
options: KPPlaylistOptions, | ||
countdown: KPPlaylistCountdownOptions, | ||
items: Array<PlaylistItem> | ||
}; | ||
declare type KPPlaylistObject = _KPPlaylistObject; | ||
|
||
/** | ||
* @typedef {Object} KPPlaylistItemConfigObject | ||
* @property {KPPlaylistCountdownOptions} [countdown] - Countdown options | ||
*/ | ||
type _KPPlaylistItemConfigObject = { | ||
countdown?: KPPlaylistCountdownOptions; | ||
}; | ||
declare type KPPlaylistItemConfigObject = _KPPlaylistItemConfigObject; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.