-
Notifications
You must be signed in to change notification settings - Fork 5
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
* Parse the bumper comes from the provider (OTT only) * Add it to the plugins passed to the player Depends on kaltura/kaltura-player-js#252
- Loading branch information
Showing
8 changed files
with
231 additions
and
3 deletions.
There are no files selected for viewing
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,17 @@ | ||
//@flow | ||
|
||
export default class Bumper { | ||
/** | ||
* @member - bumper url | ||
* @type {string} | ||
*/ | ||
url: string; | ||
|
||
/** | ||
* @constructor | ||
* @param {Object} data - The bumper response | ||
*/ | ||
constructor(data: Object) { | ||
this.url = data.url; | ||
} | ||
} |
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
28 changes: 28 additions & 0 deletions
28
src/k-provider/ott/response-types/kaltura-bumper-playback-plugin-data.js
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,28 @@ | ||
//@flow | ||
export default class KalturaBumpersPlaybackPluginData { | ||
static StreamerType: {[type: string]: string} = { | ||
HLS: 'hls', | ||
DASH: 'dash', | ||
PROGRESSIVE: 'progressive' | ||
}; | ||
|
||
/** | ||
* @member - The streamer type | ||
* @type {string} | ||
*/ | ||
streamertype: string; | ||
/** | ||
* @member - The url | ||
* @type {string} | ||
*/ | ||
url: string; | ||
|
||
/** | ||
* @constructor | ||
* @param {Object} data - The response | ||
*/ | ||
constructor(data: Object) { | ||
this.streamertype = data.streamertype; | ||
this.url = data.url; | ||
} | ||
} |
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