-
Notifications
You must be signed in to change notification settings - Fork 10
/
DashSegmentedRepresentation.ts
74 lines (64 loc) · 1.95 KB
/
DashSegmentedRepresentation.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
61
62
63
64
65
66
67
68
69
70
71
72
73
import {map, mapArray} from '../common/Mapper';
import DashMuxingRepresentation from './DashMuxingRepresentation';
import DashRepresentationType from './DashRepresentationType';
import DashRepresentationTypeMode from './DashRepresentationTypeMode';
/**
* @export
* @class DashSegmentedRepresentation
*/
export class DashSegmentedRepresentation extends DashMuxingRepresentation {
/**
* @type {DashRepresentationType}
* @memberof DashSegmentedRepresentation
*/
public type?: DashRepresentationType;
/**
* @type {DashRepresentationTypeMode}
* @memberof DashSegmentedRepresentation
*/
public mode?: DashRepresentationTypeMode;
/**
* Path to segments. Will be used as the representation id if the type is set to TEMPLATE_ADAPTATION_SET (required)
* @type {string}
* @memberof DashSegmentedRepresentation
*/
public segmentPath?: string;
/**
* Number of the first segment
* @type {number}
* @memberof DashSegmentedRepresentation
*/
public startSegmentNumber?: number;
/**
* Number of the last segment. Default is the last one that was encoded
* @type {number}
* @memberof DashSegmentedRepresentation
*/
public endSegmentNumber?: number;
/**
* Id of the Keyframe to start with
* @type {string}
* @memberof DashSegmentedRepresentation
*/
public startKeyframeId?: string;
/**
* Id of the Keyframe to end with
* @type {string}
* @memberof DashSegmentedRepresentation
*/
public endKeyframeId?: string;
constructor(obj?: Partial<DashSegmentedRepresentation>) {
super(obj);
if(!obj) {
return;
}
this.type = map(obj.type);
this.mode = map(obj.mode);
this.segmentPath = map(obj.segmentPath);
this.startSegmentNumber = map(obj.startSegmentNumber);
this.endSegmentNumber = map(obj.endSegmentNumber);
this.startKeyframeId = map(obj.startKeyframeId);
this.endKeyframeId = map(obj.endKeyframeId);
}
}
export default DashSegmentedRepresentation;