-
Notifications
You must be signed in to change notification settings - Fork 10
/
PerTitleFixedResolutionAndBitrateConfiguration.ts
41 lines (35 loc) · 1.84 KB
/
PerTitleFixedResolutionAndBitrateConfiguration.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
import {map, mapArray} from '../common/Mapper';
import PerTitleFixedResolutionAndBitrateConfigurationMode from './PerTitleFixedResolutionAndBitrateConfigurationMode';
/**
* @export
* @class PerTitleFixedResolutionAndBitrateConfiguration
*/
export class PerTitleFixedResolutionAndBitrateConfiguration {
/**
* Number of forced renditions above the highest fixed representation (e.g. FIXED_RESOLUTION_AND_BITRATE). Forced renditions will be added, also if the Per-Title algorithm chooses the user defined force rendition to be the highest one.
* @type {number}
* @memberof PerTitleFixedResolutionAndBitrateConfiguration
*/
public forcedRenditionAboveHighestFixedRepresentation?: number;
/**
* The factor to calculate the bitrate that will be chosen based on the bitrate of the last FIXED_RESOLUTION.
* @type {number}
* @memberof PerTitleFixedResolutionAndBitrateConfiguration
*/
public forcedRenditionAboveHighestFixedRepresentationFactor?: number;
/**
* Mode to calculate the bitrate of the next representation
* @type {PerTitleFixedResolutionAndBitrateConfigurationMode}
* @memberof PerTitleFixedResolutionAndBitrateConfiguration
*/
public forcedRenditionAboveHighestFixedRepresentationCalculationMode?: PerTitleFixedResolutionAndBitrateConfigurationMode;
constructor(obj?: Partial<PerTitleFixedResolutionAndBitrateConfiguration>) {
if(!obj) {
return;
}
this.forcedRenditionAboveHighestFixedRepresentation = map(obj.forcedRenditionAboveHighestFixedRepresentation);
this.forcedRenditionAboveHighestFixedRepresentationFactor = map(obj.forcedRenditionAboveHighestFixedRepresentationFactor);
this.forcedRenditionAboveHighestFixedRepresentationCalculationMode = map(obj.forcedRenditionAboveHighestFixedRepresentationCalculationMode);
}
}
export default PerTitleFixedResolutionAndBitrateConfiguration;