/
IngestInputStream.ts
59 lines (51 loc) · 1.51 KB
/
IngestInputStream.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
import {map, mapArray} from '../common/Mapper';
import InputStream from './InputStream';
import InputStreamType from './InputStreamType';
import StreamSelectionMode from './StreamSelectionMode';
/**
* @export
* @class IngestInputStream
*/
export class IngestInputStream extends InputStream {
/**
* Discriminator property for InputStream
* @type {string}
* @memberof IngestInputStream
*/
public readonly type: InputStreamType = InputStreamType.INGEST;
/**
* ID of an Input resource defining the input storage (required)
* @type {string}
* @memberof IngestInputStream
*/
public inputId?: string;
/**
* Path to an input media file (required)
* @type {string}
* @memberof IngestInputStream
*/
public inputPath?: string;
/**
* Specifies the strategy for selecting a stream from the input file
* @type {StreamSelectionMode}
* @memberof IngestInputStream
*/
public selectionMode?: StreamSelectionMode;
/**
* Position of the stream to be selected from the input file (zero-based). Must not be set in combination with selectionMode 'AUTO', defaults to 0 for any other selectionMode.
* @type {number}
* @memberof IngestInputStream
*/
public position?: number;
constructor(obj?: Partial<IngestInputStream>) {
super(obj);
if(!obj) {
return;
}
this.inputId = map(obj.inputId);
this.inputPath = map(obj.inputPath);
this.selectionMode = map(obj.selectionMode);
this.position = map(obj.position);
}
}
export default IngestInputStream;