-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #37 from THEOplayer/yospace-configuration-type
Add Yospace configuration types to connector
- Loading branch information
Showing
6 changed files
with
52 additions
and
7 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,6 @@ | ||
--- | ||
"@theoplayer/yospace-connector-web": minor | ||
--- | ||
|
||
Added `YospaceServerSideAdInsertionConfiguration` type definition to the connector, | ||
superseding the type defined by the THEOplayer Web SDK. |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
import type { ServerSideAdInsertionConfiguration } from 'theoplayer'; | ||
|
||
/** | ||
* The identifier of the Yospace integration. | ||
*/ | ||
export type YospaceSSAIIntegrationID = 'yospace'; | ||
|
||
/** | ||
* The type of the Yospace stream, represented by a value from the following list: | ||
* - `'live'`: The stream is a live stream. | ||
* - `'livepause'`: The stream is a live stream with a large DVR window. | ||
* - `'nonlinear'`: The stream is a Non-Linear Start-Over stream. | ||
* - `'vod'`: The stream is a video-on-demand stream. | ||
*/ | ||
export type YospaceStreamType = 'vod' | 'live' | 'livepause' | 'nonlinear'; | ||
|
||
/** | ||
* Represents a configuration for server-side ad insertion with Yospace using the {@link YospaceConnector}. | ||
*/ | ||
export interface YospaceServerSideAdInsertionConfiguration extends ServerSideAdInsertionConfiguration { | ||
/** | ||
* The identifier for the Yospace integration. | ||
*/ | ||
integration: YospaceSSAIIntegrationID; | ||
|
||
/** | ||
* The type of the requested stream. | ||
* | ||
* @defaultValue `'live'` | ||
*/ | ||
streamType?: YospaceStreamType; | ||
} |
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