-
Notifications
You must be signed in to change notification settings - Fork 10
/
WebVttSidecarFile.ts
37 lines (32 loc) · 1.03 KB
/
WebVttSidecarFile.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
import {map, mapArray} from '../common/Mapper';
import EncodingOutput from './EncodingOutput';
import SidecarErrorMode from './SidecarErrorMode';
import SidecarFile from './SidecarFile';
import SidecarFileType from './SidecarFileType';
import WebVttSidecarFileSegmentation from './WebVttSidecarFileSegmentation';
/**
* An external WebVTT file that is added to an encoding. The size limit for a sidecar file is 10 MB
* @export
* @class WebVttSidecarFile
*/
export class WebVttSidecarFile extends SidecarFile {
/**
* Discriminator property for SidecarFile
* @type {string}
* @memberof WebVttSidecarFile
*/
public readonly type: SidecarFileType = SidecarFileType.WEB_VTT;
/**
* @type {WebVttSidecarFileSegmentation}
* @memberof WebVttSidecarFile
*/
public segmentation?: WebVttSidecarFileSegmentation;
constructor(obj?: Partial<WebVttSidecarFile>) {
super(obj);
if(!obj) {
return;
}
this.segmentation = map(obj.segmentation, WebVttSidecarFileSegmentation);
}
}
export default WebVttSidecarFile;