-
Notifications
You must be signed in to change notification settings - Fork 30
Expand file tree
/
Copy pathAdBreak.ts
More file actions
61 lines (55 loc) · 1.59 KB
/
AdBreak.ts
File metadata and controls
61 lines (55 loc) · 1.59 KB
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
/**
* Represents an ad break in the VMAP specification or an ad pod in the VAST specification.
*
* @category Ads
* @public
*/
import type { Ad } from './Ad';
/**
* Represents an ad break in the VMAP specification or an ad pod in the VAST specification.
*
* @category Ads
* @public
*/
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 identifier of the ad break.
*
* @remarks
* <br/> - For THEOads, this is the interstitial identifier.
* <br/> - For Google IMA & DAI, this is the pod index of the ad break.
* <br/> - For other integrations, this may be `undefined`.
*/
id: string | 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;
}