-
Notifications
You must be signed in to change notification settings - Fork 10
/
TimecodeTrackTrimmingInputStream.ts
50 lines (43 loc) · 1.52 KB
/
TimecodeTrackTrimmingInputStream.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
import {map, mapArray} from '../common/Mapper';
import InputStream from './InputStream';
import InputStreamType from './InputStreamType';
/**
* @export
* @class TimecodeTrackTrimmingInputStream
*/
export class TimecodeTrackTrimmingInputStream extends InputStream {
/**
* Discriminator property for InputStream
* @type {string}
* @memberof TimecodeTrackTrimmingInputStream
*/
public readonly type: InputStreamType = InputStreamType.TRIMMING_TIME_CODE_TRACK;
/**
* The id of the ingest input stream that should be trimmed (required)
* @type {string}
* @memberof TimecodeTrackTrimmingInputStream
*/
public inputStreamId?: string;
/**
* Defines the timecode, in SMPTE-12M format, of the frame from which the encoding should start. The frame indicated by this value will be included in the encoding (required)
* @type {string}
* @memberof TimecodeTrackTrimmingInputStream
*/
public startTimeCode?: string;
/**
* Defines the timecode, in SMPTE-12M format, of the frame at which the encoding should stop. The frame indicated by this value will be included in the encoding (required)
* @type {string}
* @memberof TimecodeTrackTrimmingInputStream
*/
public endTimeCode?: string;
constructor(obj?: Partial<TimecodeTrackTrimmingInputStream>) {
super(obj);
if(!obj) {
return;
}
this.inputStreamId = map(obj.inputStreamId);
this.startTimeCode = map(obj.startTimeCode);
this.endTimeCode = map(obj.endTimeCode);
}
}
export default TimecodeTrackTrimmingInputStream;