-
Notifications
You must be signed in to change notification settings - Fork 10
/
InsertableContent.ts
36 lines (31 loc) · 1.5 KB
/
InsertableContent.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
import {map, mapArray} from '../common/Mapper';
import BitmovinResource from './BitmovinResource';
import InsertableContentInput from './InsertableContentInput';
import InsertableContentStatus from './InsertableContentStatus';
/**
* @export
* @class InsertableContent
*/
export class InsertableContent extends BitmovinResource {
/**
* Either a list of movie files to be inserted in the live stream or a single image file. The movie files must have a video stream at stream position 0, which matches the codec, resolution and framerate of the livestream. The number of audio streams must also be the same and they have to match the sample format, number of channels and sample rate of the audio streams of the livestream. Supported image formats are: `.Y.U.V`, `Alias PIX`, `animated GIF`, `APNG`, `BMP`, `DPX`, `FITS`, `JPEG`, `JPEG 2000`, `JPEG-LS`, `PAM`, `PBM`, `PCX`, `PGM`, `PGMYUV`, `PNG`, `PPM`, `SGI`, `Sun Rasterfile`, `TIFF`, `Truevision Targa`, `WebP`, `XBM`, `XFace`, `XPM`, `XWD`
* @type {InsertableContentInput[]}
* @memberof InsertableContent
*/
public inputs?: InsertableContentInput[];
/**
* Status of the insertable content.
* @type {InsertableContentStatus}
* @memberof InsertableContent
*/
public status?: InsertableContentStatus;
constructor(obj?: Partial<InsertableContent>) {
super(obj);
if(!obj) {
return;
}
this.inputs = mapArray(obj.inputs, InsertableContentInput);
this.status = map(obj.status);
}
}
export default InsertableContent;