-
Notifications
You must be signed in to change notification settings - Fork 10
/
ConcatenationInputConfiguration.ts
66 lines (57 loc) · 2 KB
/
ConcatenationInputConfiguration.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 AspectMode from './AspectMode';
import PaddingSequence from './PaddingSequence';
/**
* @export
* @class ConcatenationInputConfiguration
*/
export class ConcatenationInputConfiguration {
/**
* The ID of the input stream to be concatenated. This can be an ingest input stream or a trimming input stream (required)
* @type {string}
* @memberof ConcatenationInputConfiguration
*/
public inputStreamId?: string;
/**
* Exactly one input stream of a concatenation must have this set to true, which will be used as reference for scaling, aspect ratio, FPS, sample rate, etc.
* @type {boolean}
* @memberof ConcatenationInputConfiguration
*/
public isMain?: boolean;
/**
* A unique integer value that determines concatenation order (required)
* @type {number}
* @memberof ConcatenationInputConfiguration
*/
public position?: number;
/**
* Inserts a padding sequence (black frames and/or silent audio) before the input stream.
* @type {PaddingSequence}
* @memberof ConcatenationInputConfiguration
*/
public paddingBefore?: PaddingSequence;
/**
* Inserts a padding sequence (black frames and/or silent audio) after the input stream.
* @type {PaddingSequence}
* @memberof ConcatenationInputConfiguration
*/
public paddingAfter?: PaddingSequence;
/**
* Specifies the aspect mode that is used when adapting to the main input stream's aspect ratio
* @type {AspectMode}
* @memberof ConcatenationInputConfiguration
*/
public aspectMode?: AspectMode;
constructor(obj?: Partial<ConcatenationInputConfiguration>) {
if(!obj) {
return;
}
this.inputStreamId = map(obj.inputStreamId);
this.isMain = map(obj.isMain);
this.position = map(obj.position);
this.paddingBefore = map(obj.paddingBefore, PaddingSequence);
this.paddingAfter = map(obj.paddingAfter, PaddingSequence);
this.aspectMode = map(obj.aspectMode);
}
}
export default ConcatenationInputConfiguration;