-
Notifications
You must be signed in to change notification settings - Fork 10
/
DolbyVisionInputStream.ts
50 lines (43 loc) · 1.22 KB
/
DolbyVisionInputStream.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 DolbyVisionInputStream
*/
export class DolbyVisionInputStream extends InputStream {
/**
* Discriminator property for InputStream
* @type {string}
* @memberof DolbyVisionInputStream
*/
public readonly type: InputStreamType = InputStreamType.DOLBY_VISION;
/**
* Id of input (required)
* @type {string}
* @memberof DolbyVisionInputStream
*/
public inputId?: string;
/**
* Path to Dolby Vision input video file. (required)
* @type {string}
* @memberof DolbyVisionInputStream
*/
public videoInputPath?: string;
/**
* Path to Dolby Vision Metadata file. This field is required when the metadata is not embedded in the video input file.
* @type {string}
* @memberof DolbyVisionInputStream
*/
public metadataInputPath?: string;
constructor(obj?: Partial<DolbyVisionInputStream>) {
super(obj);
if(!obj) {
return;
}
this.inputId = map(obj.inputId);
this.videoInputPath = map(obj.videoInputPath);
this.metadataInputPath = map(obj.metadataInputPath);
}
}
export default DolbyVisionInputStream;