-
Notifications
You must be signed in to change notification settings - Fork 10
/
PerTitle.ts
52 lines (45 loc) · 1.46 KB
/
PerTitle.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
import {map, mapArray} from '../common/Mapper';
import Av1PerTitleConfiguration from './Av1PerTitleConfiguration';
import H264PerTitleConfiguration from './H264PerTitleConfiguration';
import H265PerTitleConfiguration from './H265PerTitleConfiguration';
import Vp9PerTitleConfiguration from './Vp9PerTitleConfiguration';
/**
* @export
* @class PerTitle
*/
export class PerTitle {
/**
* Per-Title configuration for H264
* @type {H264PerTitleConfiguration}
* @memberof PerTitle
*/
public h264Configuration?: H264PerTitleConfiguration;
/**
* Per-Title configuration for H265
* @type {H265PerTitleConfiguration}
* @memberof PerTitle
*/
public h265Configuration?: H265PerTitleConfiguration;
/**
* Per-Title configuration for VP9
* @type {Vp9PerTitleConfiguration}
* @memberof PerTitle
*/
public vp9Configuration?: Vp9PerTitleConfiguration;
/**
* Per-Title configuration for AV1
* @type {Av1PerTitleConfiguration}
* @memberof PerTitle
*/
public av1Configuration?: Av1PerTitleConfiguration;
constructor(obj?: Partial<PerTitle>) {
if(!obj) {
return;
}
this.h264Configuration = map(obj.h264Configuration, H264PerTitleConfiguration);
this.h265Configuration = map(obj.h265Configuration, H265PerTitleConfiguration);
this.vp9Configuration = map(obj.vp9Configuration, Vp9PerTitleConfiguration);
this.av1Configuration = map(obj.av1Configuration, Av1PerTitleConfiguration);
}
}
export default PerTitle;