-
Notifications
You must be signed in to change notification settings - Fork 10
/
BroadcastTsInputStreamConfiguration.ts
56 lines (48 loc) · 1.71 KB
/
BroadcastTsInputStreamConfiguration.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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
import {map, mapArray} from '../common/Mapper';
import RaiUnit from './RaiUnit';
/**
* @export
* @class BroadcastTsInputStreamConfiguration
*/
export class BroadcastTsInputStreamConfiguration {
/**
* The UUID of the stream to which this configuration belongs to. This has to be a ID of a stream that has been added to the current muxing.
* @type {string}
* @memberof BroadcastTsInputStreamConfiguration
*/
public streamId?: string;
/**
* An integer value. Packet Identifier (PID) for this stream.
* @type {number}
* @memberof BroadcastTsInputStreamConfiguration
*/
public packetIdentifier?: number;
/**
* Start stream with initial discontinuity indicator set to one. If true, set the discontinuity indicator in the first packet for this PID.
* @type {boolean}
* @memberof BroadcastTsInputStreamConfiguration
*/
public startWithDiscontinuityIndicator?: boolean;
/**
* Align access units to PES packets. If true, align access units to PES packet headers. Uses adaptation field stuffing to position an access unit at the beginning of each PES packet.
* @type {boolean}
* @memberof BroadcastTsInputStreamConfiguration
*/
public alignPes?: boolean;
/**
* @type {RaiUnit}
* @memberof BroadcastTsInputStreamConfiguration
*/
public setRaiOnAu?: RaiUnit;
constructor(obj?: Partial<BroadcastTsInputStreamConfiguration>) {
if(!obj) {
return;
}
this.streamId = map(obj.streamId);
this.packetIdentifier = map(obj.packetIdentifier);
this.startWithDiscontinuityIndicator = map(obj.startWithDiscontinuityIndicator);
this.alignPes = map(obj.alignPes);
this.setRaiOnAu = map(obj.setRaiOnAu);
}
}
export default BroadcastTsInputStreamConfiguration;