-
Notifications
You must be signed in to change notification settings - Fork 10
/
HlsManifestAdMarkerSettings.ts
25 lines (21 loc) · 1.37 KB
/
HlsManifestAdMarkerSettings.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
import {map, mapArray} from '../common/Mapper';
import HlsManifestAdMarkerType from './HlsManifestAdMarkerType';
/**
* @export
* @class HlsManifestAdMarkerSettings
*/
export class HlsManifestAdMarkerSettings {
/**
* Ad marker types that will be inserted. More than one type is possible. - EXT_X_CUE_OUT_IN: Ad markers will be inserted using `#EXT-X-CUE-OUT` and `#EXT-X-CUE-IN` tags - EXT_OATCLS_SCTE35: Ad markers will be inserted using `#EXT-OATCLS-SCTE35` tags. They contain the base64 encoded raw bytes of the original SCTE-35 trigger. - EXT_X_SPLICEPOINT_SCTE35: Ad markers will be inserted using `#EXT-X-SPLICEPOINT-SCTE35` tags. They contain the base64 encoded raw bytes of the original SCTE-35 trigger. - EXT_X_DATERANGE: Ad markers will be inserted using `#EXT-X-DATERANGE` tags. They contain the ID, start timestamp and hex encoded raw bytes of the original SCTE-35 trigger. - EXT_X_SCTE35: Ad markers will be inserted using `#EXT-X-SCTE35` tags. They contain the base64 encoded raw bytes of the original SCTE-35 trigger.
* @type {HlsManifestAdMarkerType[]}
* @memberof HlsManifestAdMarkerSettings
*/
public enabledMarkerTypes?: HlsManifestAdMarkerType[];
constructor(obj?: Partial<HlsManifestAdMarkerSettings>) {
if(!obj) {
return;
}
this.enabledMarkerTypes = mapArray(obj.enabledMarkerTypes);
}
}
export default HlsManifestAdMarkerSettings;