-
Notifications
You must be signed in to change notification settings - Fork 10
/
AkamaiMslOutput.ts
61 lines (53 loc) · 1.62 KB
/
AkamaiMslOutput.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
51
52
53
54
55
56
57
58
59
60
import {map, mapArray} from '../common/Mapper';
import AclEntry from './AclEntry';
import AkamaiMslStreamFormat from './AkamaiMslStreamFormat';
import AkamaiMslVersion from './AkamaiMslVersion';
import Output from './Output';
import OutputType from './OutputType';
/**
* @export
* @class AkamaiMslOutput
*/
export class AkamaiMslOutput extends Output {
/**
* Discriminator property for Output
* @type {string}
* @memberof AkamaiMslOutput
*/
public readonly type: OutputType = OutputType.AKAMAI_MSL;
/**
* The Akamai stream ID (required)
* @type {number}
* @memberof AkamaiMslOutput
*/
public streamId?: number;
/**
* The Akamai event name (required)
* @type {string}
* @memberof AkamaiMslOutput
*/
public eventName?: string;
/**
* - DASH: configure the Encoding with fMP4 or CMAF muxings and a DASH manifest. - HLS: configure the Encoding with TS muxings and an HLS manifest. - CMAF: configure the Encoding with fMP4 or CMAF muxings with both DASH and HLS manifests. (required)
* @type {AkamaiMslStreamFormat}
* @memberof AkamaiMslOutput
*/
public streamFormat?: AkamaiMslStreamFormat;
/**
* The Akamai MSL Version. Only MSL4 is supported at the moment. (required)
* @type {AkamaiMslVersion}
* @memberof AkamaiMslOutput
*/
public mslVersion?: AkamaiMslVersion;
constructor(obj?: Partial<AkamaiMslOutput>) {
super(obj);
if(!obj) {
return;
}
this.streamId = map(obj.streamId);
this.eventName = map(obj.eventName);
this.streamFormat = map(obj.streamFormat);
this.mslVersion = map(obj.mslVersion);
}
}
export default AkamaiMslOutput;