-
Notifications
You must be signed in to change notification settings - Fork 10
/
ProgressiveTsMuxing.ts
54 lines (47 loc) · 1.33 KB
/
ProgressiveTsMuxing.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 ProgressiveTsMuxing
*/
export class ProgressiveTsMuxing extends Muxing {
/**
* Discriminator property for Muxing
* @type {string}
* @memberof ProgressiveTsMuxing
*/
public readonly type: MuxingType = MuxingType.PROGRESSIVE_TS;
/**
* Length of the segments in seconds
* @type {number}
* @memberof ProgressiveTsMuxing
*/
public segmentLength?: number;
/**
* Name of the output file
* @type {string}
* @memberof ProgressiveTsMuxing
*/
public filename?: string;
/**
* Offset of MPEG-TS timestamps in seconds. e.g. first packet will start with PTS 900,000 for a 10 seconds offset (90,000 MPEG-TS timescale).
* @type {number}
* @memberof ProgressiveTsMuxing
*/
public startOffset?: number;
constructor(obj?: Partial<ProgressiveTsMuxing>) {
super(obj);
if(!obj) {
return;
}
this.segmentLength = map(obj.segmentLength);
this.filename = map(obj.filename);
this.startOffset = map(obj.startOffset);
}
}
export default ProgressiveTsMuxing;