/ fm / liveswitch / MediaComponentStats
Class: MediaComponentStats
fm.liveswitch.MediaComponentStats
Media component stats.
Hierarchy
-
↳ MediaComponentStats
Table of contents
Constructors
Methods
- deserializeProperties
- fmliveswitchMediaComponentStatsInit
- getCodec
- getFirCount
- getId
- getLrrCount
- getMediaQuality
- getNackCount
- getPliCount
- getRepairedRtpStreamId
- getRtpStreamId
- getSliCount
- getSynchronizationSource
- getTimestamp
- getTrack
- getTypeString
- serializeProperties
- setCodec
- setFirCount
- setLrrCount
- setNackCount
- setPliCount
- setRepairedRtpStreamId
- setRtpStreamId
- setSliCount
- setSynchronizationSource
- setTrack
Constructors
constructor
+ new MediaComponentStats(): MediaComponentStats
Returns: MediaComponentStats
Inherited from: BaseStats
Defined in: Generated/TypeScript/fm.liveswitch/MediaComponentStats.ts:42
Methods
deserializeProperties
▸ Protected
deserializeProperties(key
: string, valueJson
: string): void
Deserializes the properties.
Parameters:
Name | Type | Description |
---|---|---|
key |
string | The key. |
valueJson |
string | The value in JSON format. |
Returns: void
Overrides: BaseStats
Defined in: Generated/TypeScript/fm.liveswitch/MediaComponentStats.ts:62
fmliveswitchMediaComponentStatsInit
▸ Private
fmliveswitchMediaComponentStatsInit(): void
Returns: void
Defined in: Generated/TypeScript/fm.liveswitch/MediaComponentStats.ts:34
getCodec
▸ getCodec(): CodecStats
Gets the codec stats.
Returns: CodecStats
Defined in: Generated/TypeScript/fm.liveswitch/MediaComponentStats.ts:108
getFirCount
▸ getFirCount(): number
Gets the FIR count.
Returns: number
Defined in: Generated/TypeScript/fm.liveswitch/MediaComponentStats.ts:120
getId
▸ getId(): string
Gets the identifier of the object generating these stats.
Returns: string
Inherited from: BaseStats
Defined in: Generated/TypeScript/fm.liveswitch/BaseStats.ts:57
getLrrCount
▸ getLrrCount(): number
Gets the LRR count.
Returns: number
Defined in: Generated/TypeScript/fm.liveswitch/MediaComponentStats.ts:132
getMediaQuality
▸ getMediaQuality(audio
: boolean): number
Gets the component's estimated media quality.
The value ranges from 0.0 to 1.0, where 0.0 is the lowest quality and 1.0 is the highest quality.
Parameters:
Name | Type | Description |
---|---|---|
audio |
boolean | Whether these are audio stats. |
Returns: number
Defined in: Generated/TypeScript/fm.liveswitch/MediaComponentStats.ts:147
getNackCount
▸ getNackCount(): number
Gets the NACK count.
Returns: number
Defined in: Generated/TypeScript/fm.liveswitch/MediaComponentStats.ts:163
getPliCount
▸ getPliCount(): number
Gets the PLI count.
Returns: number
Defined in: Generated/TypeScript/fm.liveswitch/MediaComponentStats.ts:175
getRepairedRtpStreamId
▸ getRepairedRtpStreamId(): string
Gets the repaired RTP stream identifier.
Returns: string
Defined in: Generated/TypeScript/fm.liveswitch/MediaComponentStats.ts:187
getRtpStreamId
▸ getRtpStreamId(): string
Gets the RTP stream identifier.
Returns: string
Defined in: Generated/TypeScript/fm.liveswitch/MediaComponentStats.ts:199
getSliCount
▸ getSliCount(): number
Gets the SLI count.
Returns: number
Defined in: Generated/TypeScript/fm.liveswitch/MediaComponentStats.ts:211
getSynchronizationSource
▸ getSynchronizationSource(): number
Gets the synchronization source.
Returns: number
Defined in: Generated/TypeScript/fm.liveswitch/MediaComponentStats.ts:223
getTimestamp
▸ getTimestamp(): DateTime
Gets the timestamp when these stats were generated.
Returns: DateTime
Inherited from: BaseStats
Defined in: Generated/TypeScript/fm.liveswitch/BaseStats.ts:70
getTrack
▸ getTrack(): MediaTrackStats
Gets the track's stats.
Returns: MediaTrackStats
Defined in: Generated/TypeScript/fm.liveswitch/MediaComponentStats.ts:235
getTypeString
▸ getTypeString(): string
Returns: string
Overrides: BaseStats
Defined in: Generated/TypeScript/fm.liveswitch/MediaComponentStats.ts:10
serializeProperties
▸ Protected
serializeProperties(jsonObject
: Hash<string, string>): void
Serializes the properties.
Parameters:
Name | Type | Description |
---|---|---|
jsonObject |
Hash<string, string> | The JSON object. |
Returns: void
Overrides: BaseStats
Defined in: Generated/TypeScript/fm.liveswitch/MediaComponentStats.ts:248
setCodec
▸ setCodec(value
: CodecStats): void
Sets the codec stats.
Parameters:
Name | Type |
---|---|
value |
CodecStats |
Returns: void
Defined in: Generated/TypeScript/fm.liveswitch/MediaComponentStats.ts:274
setFirCount
▸ setFirCount(value
: number): void
Sets the FIR count.
Parameters:
Name | Type |
---|---|
value |
number |
Returns: void
Defined in: Generated/TypeScript/fm.liveswitch/MediaComponentStats.ts:286
setLrrCount
▸ setLrrCount(value
: number): void
Sets the LRR count.
Parameters:
Name | Type |
---|---|
value |
number |
Returns: void
Defined in: Generated/TypeScript/fm.liveswitch/MediaComponentStats.ts:299
setNackCount
▸ setNackCount(value
: number): void
Sets the NACK count.
Parameters:
Name | Type |
---|---|
value |
number |
Returns: void
Defined in: Generated/TypeScript/fm.liveswitch/MediaComponentStats.ts:312
setPliCount
▸ setPliCount(value
: number): void
Sets the PLI count.
Parameters:
Name | Type |
---|---|
value |
number |
Returns: void
Defined in: Generated/TypeScript/fm.liveswitch/MediaComponentStats.ts:325
setRepairedRtpStreamId
▸ setRepairedRtpStreamId(value
: string): void
Sets the repaired RTP stream identifier.
Parameters:
Name | Type |
---|---|
value |
string |
Returns: void
Defined in: Generated/TypeScript/fm.liveswitch/MediaComponentStats.ts:338
setRtpStreamId
▸ setRtpStreamId(value
: string): void
Sets the RTP stream identifier.
Parameters:
Name | Type |
---|---|
value |
string |
Returns: void
Defined in: Generated/TypeScript/fm.liveswitch/MediaComponentStats.ts:350
setSliCount
▸ setSliCount(value
: number): void
Sets the SLI count.
Parameters:
Name | Type |
---|---|
value |
number |
Returns: void
Defined in: Generated/TypeScript/fm.liveswitch/MediaComponentStats.ts:362
setSynchronizationSource
▸ setSynchronizationSource(value
: number): void
Sets the synchronization source.
Parameters:
Name | Type |
---|---|
value |
number |
Returns: void
Defined in: Generated/TypeScript/fm.liveswitch/MediaComponentStats.ts:375
setTrack
▸ setTrack(value
: MediaTrackStats): void
Sets the track's stats.
Parameters:
Name | Type |
---|---|
value |
MediaTrackStats |
Returns: void
Defined in: Generated/TypeScript/fm.liveswitch/MediaComponentStats.ts:388