-
Notifications
You must be signed in to change notification settings - Fork 10
/
ReuploadSettings.ts
40 lines (34 loc) · 1.32 KB
/
ReuploadSettings.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
import {map, mapArray} from '../common/Mapper';
/**
* @export
* @class ReuploadSettings
*/
export class ReuploadSettings {
/**
* Interval in seconds to reupload the DASH manifest. Valid values are either `null` to never reupload the dash manifest or at least `30`.
* @type {number}
* @memberof ReuploadSettings
*/
public dashManifestInterval?: number;
/**
* Interval in seconds to reupload the HLS master file. Valid values are either `0` to never reupload the hls manifest or at least `30`. This is currently not used, as the master file will always be uploaded when one of the playlist files has changed.
* @type {number}
* @memberof ReuploadSettings
*/
public hlsManifestInterval?: number;
/**
* The interval in seconds to reupload the init file for segmented muxings, e.g. fMP4, WebM. Valid values are either `null` to never reupload the init file for segmented muxings or at least `30`.
* @type {number}
* @memberof ReuploadSettings
*/
public muxingInitFileInterval?: number;
constructor(obj?: Partial<ReuploadSettings>) {
if(!obj) {
return;
}
this.dashManifestInterval = map(obj.dashManifestInterval);
this.hlsManifestInterval = map(obj.hlsManifestInterval);
this.muxingInitFileInterval = map(obj.muxingInitFileInterval);
}
}
export default ReuploadSettings;