-
Notifications
You must be signed in to change notification settings - Fork 10
/
DashManifestDefault.ts
51 lines (45 loc) · 1.72 KB
/
DashManifestDefault.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
45
46
47
48
49
50
import {map, mapArray} from '../common/Mapper';
import DashEditionCompatibility from './DashEditionCompatibility';
import DashManifest from './DashManifest';
import DashManifestDefaultVersion from './DashManifestDefaultVersion';
import DashProfile from './DashProfile';
import DefaultDashManifestPeriod from './DefaultDashManifestPeriod';
import EncodingOutput from './EncodingOutput';
import ManifestType from './ManifestType';
import Status from './Status';
import UtcTiming from './UtcTiming';
import XmlNamespace from './XmlNamespace';
/**
* @export
* @class DashManifestDefault
*/
export class DashManifestDefault extends DashManifest {
/**
* The id of the encoding to create a default manifest for. Either \"encodingId\" or \"periods\" is required.
* @type {string}
* @memberof DashManifestDefault
*/
public encodingId?: string;
/**
* Specifies the algorithm that determines which output of the given encoding is included into the manifest. Note that this is not related to the \"manifestGenerator\" version of the \"Start\" request.
* @type {DashManifestDefaultVersion}
* @memberof DashManifestDefault
*/
public version?: DashManifestDefaultVersion;
/**
* Adds a period for every item. Can only be used when setting \"version\" to \"V2\". Either \"periods\" or \"encodingId\" is required.
* @type {DefaultDashManifestPeriod[]}
* @memberof DashManifestDefault
*/
public periods?: DefaultDashManifestPeriod[];
constructor(obj?: Partial<DashManifestDefault>) {
super(obj);
if(!obj) {
return;
}
this.encodingId = map(obj.encodingId);
this.version = map(obj.version);
this.periods = mapArray(obj.periods, DefaultDashManifestPeriod);
}
}
export default DashManifestDefault;