-
Notifications
You must be signed in to change notification settings - Fork 10
/
DashMp4Representation.ts
43 lines (37 loc) · 1.15 KB
/
DashMp4Representation.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
import {map, mapArray} from '../common/Mapper';
import DashMuxingRepresentation from './DashMuxingRepresentation';
import DashOnDemandRepresentationType from './DashOnDemandRepresentationType';
import DashRepresentationTypeDiscriminator from './DashRepresentationTypeDiscriminator';
/**
* @export
* @class DashMp4Representation
*/
export class DashMp4Representation extends DashMuxingRepresentation {
/**
* Discriminator property for DashRepresentation
* @type {string}
* @memberof DashMp4Representation
*/
public readonly typeDiscriminator: DashRepresentationTypeDiscriminator = DashRepresentationTypeDiscriminator.MP4;
/**
* Path to the MP4 file (required)
* @type {string}
* @memberof DashMp4Representation
*/
public filePath?: string;
/**
* The type of the dash representation
* @type {DashOnDemandRepresentationType}
* @memberof DashMp4Representation
*/
public type?: DashOnDemandRepresentationType;
constructor(obj?: Partial<DashMp4Representation>) {
super(obj);
if(!obj) {
return;
}
this.filePath = map(obj.filePath);
this.type = map(obj.type);
}
}
export default DashMp4Representation;