-
Notifications
You must be signed in to change notification settings - Fork 10
/
SmoothStreamingRepresentation.ts
66 lines (57 loc) · 1.61 KB
/
SmoothStreamingRepresentation.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
import {map, mapArray} from '../common/Mapper';
import BitmovinResource from './BitmovinResource';
/**
* @export
* @class SmoothStreamingRepresentation
*/
export class SmoothStreamingRepresentation extends BitmovinResource {
/**
* Id of the encoding (required)
* @type {string}
* @memberof SmoothStreamingRepresentation
*/
public encodingId?: string;
/**
* Id of the muxing. (required)
* @type {string}
* @memberof SmoothStreamingRepresentation
*/
public muxingId?: string;
/**
* The Smooth Streaming ismv or isma file that will be referenced in the manifest. (required)
* @type {string}
* @memberof SmoothStreamingRepresentation
*/
public mediaFile?: string;
/**
* Language of the MP4 file
* @type {string}
* @memberof SmoothStreamingRepresentation
*/
public language?: string;
/**
* Track where this MP4 shoudl be added
* @type {string}
* @memberof SmoothStreamingRepresentation
*/
public trackName?: string;
/**
* Specifies the priority of this representation. In the manifest, representations will appear ordered by descending priority values.
* @type {number}
* @memberof SmoothStreamingRepresentation
*/
public priority?: number;
constructor(obj?: Partial<SmoothStreamingRepresentation>) {
super(obj);
if(!obj) {
return;
}
this.encodingId = map(obj.encodingId);
this.muxingId = map(obj.muxingId);
this.mediaFile = map(obj.mediaFile);
this.language = map(obj.language);
this.trackName = map(obj.trackName);
this.priority = map(obj.priority);
}
}
export default SmoothStreamingRepresentation;