-
Notifications
You must be signed in to change notification settings - Fork 24
/
Copy pathAdBreak.ts
44 lines (39 loc) · 1.16 KB
/
AdBreak.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
/**
* Represents an ad break in the VMAP specification or an ad pod in the VAST specification.
*
* @public
*/
import type { Ad } from './Ad';
export interface AdBreak {
/**
* The integration of the ad break, represented by a value from the following list:
* <br/> - `'theo'`
* <br/> - `'google-ima'`
* <br/> - `'google-dai'`
* <br/> - `'freewheel'`
*/
integration: string | undefined;
/**
* List of ads which will be played sequentially at the ad break's time offset.
*/
ads: Ad[] | undefined;
/**
* The time offset at which content will be paused to play the ad break, in seconds.
*/
timeOffset: number;
/**
* The duration of the ad break, in seconds.
*
* @remarks
* <br/> - Ads are lazily loaded. This property becomes available when all ads are loaded.
*/
maxDuration: number | undefined;
/**
* The remaining duration of the ad break, in seconds.
*
* @remarks
* <br/> - Ads are lazily loaded. This property becomes available when all ads are loaded.
* <br/> - This feature is not available in the Google IMA integration and will default to -1.
*/
maxRemainingDuration: number | undefined;
}