import type { ServerSideAdInsertionConfiguration } from './ServerSideAdInsertionConfiguration'; import type { TypedSource } from '../../SourceDescription'; /** * The identifier of the Yospace integration. * * @public */ 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. * * @public */ export type YospaceStreamType = 'vod' | 'live' | 'livepause' | 'nonlinear'; /** * Represents a configuration for server-side ad insertion with the Yospace pre-integration. * * @remarks *
- Available since v2.14.7. * * @public */ export interface YospaceServerSideAdInsertionConfiguration extends ServerSideAdInsertionConfiguration { /** * The identifier for the SSAI pre-integration. */ integration: YospaceSSAIIntegrationID; /** * The type of the requested stream. * * @defaultValue `'live'` */ streamType?: YospaceStreamType; } /** * Represents a media resource with a Yospace server-side ad insertion request. * * @public */ export interface YospaceTypedSource extends TypedSource { ssai: YospaceServerSideAdInsertionConfiguration; }