-
Notifications
You must be signed in to change notification settings - Fork 10
/
Cea708CaptionInputStream.ts
50 lines (43 loc) · 1.17 KB
/
Cea708CaptionInputStream.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 Cea708CaptionInputStream
*/
export class Cea708CaptionInputStream extends InputStream {
/**
* Discriminator property for InputStream
* @type {string}
* @memberof Cea708CaptionInputStream
*/
public readonly type: InputStreamType = InputStreamType.CAPTION_CEA708;
/**
* Id of the Input (required)
* @type {string}
* @memberof Cea708CaptionInputStream
*/
public inputId?: string;
/**
* Path to media file (required)
* @type {string}
* @memberof Cea708CaptionInputStream
*/
public inputPath?: string;
/**
* The channel number of the subtitle on the respective stream position. Must not be smaller than 1 (required)
* @type {number}
* @memberof Cea708CaptionInputStream
*/
public channel?: number;
constructor(obj?: Partial<Cea708CaptionInputStream>) {
super(obj);
if(!obj) {
return;
}
this.inputId = map(obj.inputId);
this.inputPath = map(obj.inputPath);
this.channel = map(obj.channel);
}
}
export default Cea708CaptionInputStream;