-
Notifications
You must be signed in to change notification settings - Fork 10
/
Bif.ts
68 lines (59 loc) · 1.56 KB
/
Bif.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
59
60
61
62
63
64
65
66
67
import {map, mapArray} from '../common/Mapper';
import BitmovinResource from './BitmovinResource';
import EncodingOutput from './EncodingOutput';
import ThumbnailAspectMode from './ThumbnailAspectMode';
/**
* Either height or width is required. It is also possible to set both properties.
* @export
* @class Bif
*/
export class Bif extends BitmovinResource {
/**
* Height of one thumbnail
* @type {number}
* @memberof Bif
*/
public height?: number;
/**
* Width of one thumbnail. Roku recommends a width of 240 for SD and 320 for HD.
* @type {number}
* @memberof Bif
*/
public width?: number;
/**
* Distance in seconds between a screenshot (required)
* @type {number}
* @memberof Bif
*/
public distance?: number;
/**
* Filename of the Bif image. (required)
* @type {string}
* @memberof Bif
*/
public filename?: string;
/**
* @type {EncodingOutput[]}
* @memberof Bif
*/
public outputs?: EncodingOutput[];
/**
* Specifies the aspect mode that is used when both height and width are specified Only supported starting with encoder version `2.85.0`.
* @type {ThumbnailAspectMode}
* @memberof Bif
*/
public aspectMode?: ThumbnailAspectMode;
constructor(obj?: Partial<Bif>) {
super(obj);
if(!obj) {
return;
}
this.height = map(obj.height);
this.width = map(obj.width);
this.distance = map(obj.distance);
this.filename = map(obj.filename);
this.outputs = mapArray(obj.outputs, EncodingOutput);
this.aspectMode = map(obj.aspectMode);
}
}
export default Bif;