-
Notifications
You must be signed in to change notification settings - Fork 10
/
BroadcastTsSubtitleInputStreamConfiguration.ts
40 lines (34 loc) · 1.55 KB
/
BroadcastTsSubtitleInputStreamConfiguration.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 BroadcastTsSubtitleInputStreamConfiguration
*/
export class BroadcastTsSubtitleInputStreamConfiguration {
/**
* The UUID of the subtitle stream to which this configuration belongs to. This has to be an ID of an subtitle stream that has been added to the current muxing.
* @type {string}
* @memberof BroadcastTsSubtitleInputStreamConfiguration
*/
public streamId?: string;
/**
* An integer value. Packet Identifier (PID) for this stream.
* @type {number}
* @memberof BroadcastTsSubtitleInputStreamConfiguration
*/
public packetIdentifier?: number;
/**
* The rate parameter determines the maximum rate in bits per second that should be used for the subtitle stream. The valid range is `100` to `60 000 000` bps or `0`. If the value is set to 0, we will examine the first 100 packets of subtitle packet data and use the highest rate that was computed. If the value is set too low, not enough to accommodate the subtitle bit-rate, then some PES packets corresponding to DVB subtitle stream will be dropped. This parameter is optional and the default value is 0.
* @type {number}
* @memberof BroadcastTsSubtitleInputStreamConfiguration
*/
public rate?: number;
constructor(obj?: Partial<BroadcastTsSubtitleInputStreamConfiguration>) {
if(!obj) {
return;
}
this.streamId = map(obj.streamId);
this.packetIdentifier = map(obj.packetIdentifier);
this.rate = map(obj.rate);
}
}
export default BroadcastTsSubtitleInputStreamConfiguration;