-
Notifications
You must be signed in to change notification settings - Fork 10
/
SegmentedRawMuxing.ts
54 lines (47 loc) · 1.27 KB
/
SegmentedRawMuxing.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
import {map, mapArray} from '../common/Mapper';
import EncodingOutput from './EncodingOutput';
import Ignoring from './Ignoring';
import Muxing from './Muxing';
import MuxingStream from './MuxingStream';
import MuxingType from './MuxingType';
import StreamConditionsMode from './StreamConditionsMode';
/**
* @export
* @class SegmentedRawMuxing
*/
export class SegmentedRawMuxing extends Muxing {
/**
* Discriminator property for Muxing
* @type {string}
* @memberof SegmentedRawMuxing
*/
public readonly type: MuxingType = MuxingType.SEGMENTED_RAW;
/**
* Length of the fragments in seconds (required)
* @type {number}
* @memberof SegmentedRawMuxing
*/
public segmentLength?: number;
/**
* Segment naming policy (required)
* @type {string}
* @memberof SegmentedRawMuxing
*/
public segmentNaming?: string;
/**
* Number of segments which have been encoded
* @type {number}
* @memberof SegmentedRawMuxing
*/
public segmentsMuxed?: number;
constructor(obj?: Partial<SegmentedRawMuxing>) {
super(obj);
if(!obj) {
return;
}
this.segmentLength = map(obj.segmentLength);
this.segmentNaming = map(obj.segmentNaming);
this.segmentsMuxed = map(obj.segmentsMuxed);
}
}
export default SegmentedRawMuxing;