-
Notifications
You must be signed in to change notification settings - Fork 10
/
DolbyVisionMetadata.ts
44 lines (38 loc) · 1.2 KB
/
DolbyVisionMetadata.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
import {map, mapArray} from '../common/Mapper';
import BitmovinResource from './BitmovinResource';
import DolbyVisionMetadataSource from './DolbyVisionMetadataSource';
import DolbyVisionProfile from './DolbyVisionProfile';
/**
* @export
* @class DolbyVisionMetadata
*/
export class DolbyVisionMetadata extends BitmovinResource {
/**
* Dolby Vision Profile (required)
* @type {DolbyVisionProfile}
* @memberof DolbyVisionMetadata
*/
public profile?: DolbyVisionProfile;
/**
* Dolby Vision Metadata Source (required)
* @type {DolbyVisionMetadataSource}
* @memberof DolbyVisionMetadata
*/
public metadataSource?: DolbyVisionMetadataSource;
/**
* ID of the Dolby Vision Metadata Ingest Input Stream which provides the XML Metadata file. Required if metadataSource is set to INPUT_STREAM.
* @type {string}
* @memberof DolbyVisionMetadata
*/
public metadataInputStreamId?: string;
constructor(obj?: Partial<DolbyVisionMetadata>) {
super(obj);
if(!obj) {
return;
}
this.profile = map(obj.profile);
this.metadataSource = map(obj.metadataSource);
this.metadataInputStreamId = map(obj.metadataInputStreamId);
}
}
export default DolbyVisionMetadata;