FMLiveSwitchConnectionStats Class Reference

Connection stats. More...

Instance Methods

(double) - audioMediaQuality
 Gets the audio streams' minimum estimated media quality. More...
 
(double) - audioNetworkQuality
 Gets the audio streams' minimum estimated network quality. More...
 
(double) - audioReceiverNetworkScore
 Gets the audio receiver streams' estimated network score. More...
 
(FMLiveSwitchMediaStreamStats *) - audioStream
 Gets the first audio stream's stats. More...
 
(NSMutableArray *) - audioStreams
 Gets the audio streams' stats. More...
 
(FMLiveSwitchDataStreamStats *) - dataStream
 Gets the data stream's stats. More...
 
(void) - deserializePropertiesWithKey:valueJson:
 Deserializes the properties. More...
 
(NSString *) - externalId
 Gets the external identifier. More...
 
(FMLiveSwitchMediaStreamStats *) - getMediaStreamWithMediaStreamId:
 Gets a media stream by its identifier. More...
 
(instancetype) - init
 
(bool) - isHost
 Gets whether any of the streams are using a transport whose active candidate pair has a host candidate. More...
 
(bool) - isReflexive
 Gets whether any of the streams are using a transport whose active candidate pair has a reflexive candidate. More...
 
(bool) - isRelayed
 Gets whether any of the streams are using a transport whose active candidate pair has a relayed candidate. More...
 
(double) - mediaQuality
 Gets the connection's estimated media quality as the minimum of the audioMediaQuality and the videoMediaQuality. More...
 
(FMLiveSwitchMediaStreamStats *) - mediaStream
 Gets the first media stream's stats. More...
 
(NSMutableArray *) - mediaStreams
 Gets the media streams' stats. More...
 
(double) - networkQuality
 Gets the connection's estimated network quality as the minimum of the audioNetworkQuality and the videoNetworkQuality. More...
 
(double) - receiverNetworkScore
 Gets the connection's estimated network score as the minimum of the audioReceiverNetworkScore and the videoReceiverNetworkScore. More...
 
(void) - serializePropertiesWithJsonObject:
 Serializes the properties. More...
 
(void) - setExternalId:
 Sets the external identifier. More...
 
(void) - setState:
 Sets the state. More...
 
(FMLiveSwitchConnectionState) - state
 Gets the state. More...
 
(NSMutableArray *) - streams
 Gets the streams' stats. More...
 
(NSString *) - toJson
 Serializes this to JSON. More...
 
(double) - videoMediaQuality
 Gets the video streams' minimum estimated media quality. More...
 
(double) - videoNetworkQuality
 Gets the video streams' minimum estimated network quality. More...
 
(double) - videoReceiverNetworkScore
 Gets the video receiver streams' estimated network score. More...
 
(FMLiveSwitchMediaStreamStats *) - videoStream
 Gets the first video stream's stats. More...
 
(NSMutableArray *) - videoStreams
 Gets the video streams' stats. More...
 
- Instance Methods inherited from FMLiveSwitchBaseStats
(NSString *) - id
 Gets the identifier of the object generating these stats. More...
 
(NSDate *) - timestamp
 Gets the timestamp when these stats were generated. More...
 

Class Methods

(FMLiveSwitchConnectionStats *) + connectionStats
 
(FMLiveSwitchConnectionStats *) + fromJsonWithConnectionJson:
 Derializes connection stats from JSON. More...
 
(NSString *) + toJsonWithConnection:
 Serializes connection stats to JSON. More...
 
- Class Methods inherited from FMLiveSwitchBaseStats
(FMLiveSwitchBaseStats *) + baseStats
 

Detailed Description

Connection stats.

Method Documentation

◆ audioMediaQuality

- (double) audioMediaQuality

Gets the audio streams' minimum 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.

◆ audioNetworkQuality

- (double) audioNetworkQuality

Gets the audio streams' minimum estimated network quality.


The value ranges from 0.0 to 1.0, where 0.0 is the lowest quality and 1.0 is the highest quality.

◆ audioReceiverNetworkScore

- (double) audioReceiverNetworkScore

Gets the audio receiver streams' estimated network score.


The value ranges from 1.0 to 5.0, where 1.0 is the lowest score and 5.0 is the highest score.

◆ audioStream

- (FMLiveSwitchMediaStreamStats*) audioStream

Gets the first audio stream's stats.

◆ audioStreams

- (NSMutableArray*) audioStreams

Gets the audio streams' stats.

◆ connectionStats

+ (FMLiveSwitchConnectionStats*) connectionStats

◆ dataStream

- (FMLiveSwitchDataStreamStats*) dataStream

Gets the data stream's stats.

◆ deserializePropertiesWithKey:valueJson:

- (void) deserializePropertiesWithKey: (NSString *)  key
valueJson: (NSString *)  valueJson 

Deserializes the properties.

Parameters
keyThe key.
valueJsonThe value in JSON format.

Implements FMLiveSwitchBaseStats.

◆ externalId

- (NSString*) externalId

Gets the external identifier.

◆ fromJsonWithConnectionJson:

+ (FMLiveSwitchConnectionStats*) fromJsonWithConnectionJson: (NSString *)  connectionJson

Derializes connection stats from JSON.

Parameters
connectionJsonThe connection's stats JSON.

◆ getMediaStreamWithMediaStreamId:

- (FMLiveSwitchMediaStreamStats*) getMediaStreamWithMediaStreamId: (NSString *)  mediaStreamId

Gets a media stream by its identifier.

Parameters
mediaStreamIdThe media stream identifier.

◆ init

- (instancetype) init

Implements FMLiveSwitchBaseStats.

◆ isHost

- (bool) isHost

Gets whether any of the streams are using a transport whose active candidate pair has a host candidate.

◆ isReflexive

- (bool) isReflexive

Gets whether any of the streams are using a transport whose active candidate pair has a reflexive candidate.

◆ isRelayed

- (bool) isRelayed

Gets whether any of the streams are using a transport whose active candidate pair has a relayed candidate.

◆ mediaQuality

- (double) mediaQuality

Gets the connection's estimated media quality as the minimum of the audioMediaQuality and the videoMediaQuality.


The value ranges from 0.0 to 1.0, where 0.0 is the lowest quality and 1.0 is the highest quality.

◆ mediaStream

- (FMLiveSwitchMediaStreamStats*) mediaStream

Gets the first media stream's stats.

◆ mediaStreams

- (NSMutableArray*) mediaStreams

Gets the media streams' stats.

◆ networkQuality

- (double) networkQuality

Gets the connection's estimated network quality as the minimum of the audioNetworkQuality and the videoNetworkQuality.


The value ranges from 0.0 to 1.0, where 0.0 is the lowest quality and 1.0 is the highest quality.

◆ receiverNetworkScore

- (double) receiverNetworkScore

Gets the connection's estimated network score as the minimum of the audioReceiverNetworkScore and the videoReceiverNetworkScore.


The value ranges from 1.0 to 5.0, where 1.0 is the lowest score and 5.0 is the highest score.

◆ serializePropertiesWithJsonObject:

- (void) serializePropertiesWithJsonObject: (NSMutableDictionary< NSString *, NSString * > *)  jsonObject

Serializes the properties.

Parameters
jsonObjectThe JSON object.

Implements FMLiveSwitchBaseStats.

◆ setExternalId:

- (void) setExternalId: (NSString *)  value

Sets the external identifier.

◆ setState:

- (void) setState: (FMLiveSwitchConnectionState)  value

Sets the state.

◆ state

- (FMLiveSwitchConnectionState) state

Gets the state.

◆ streams

- (NSMutableArray*) streams

Gets the streams' stats.

◆ toJson

- (NSString*) toJson

Serializes this to JSON.

◆ toJsonWithConnection:

+ (NSString*) toJsonWithConnection: (FMLiveSwitchConnectionStats *)  connection

Serializes connection stats to JSON.

Parameters
connectionThe connection's stats.

◆ videoMediaQuality

- (double) videoMediaQuality

Gets the video streams' minimum 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.

◆ videoNetworkQuality

- (double) videoNetworkQuality

Gets the video streams' minimum estimated network quality.


The value ranges from 0.0 to 1.0, where 0.0 is the lowest quality and 1.0 is the highest quality.

◆ videoReceiverNetworkScore

- (double) videoReceiverNetworkScore

Gets the video receiver streams' estimated network score.


The value ranges from 1.0 to 5.0, where 1.0 is the lowest score and 5.0 is the highest score.

◆ videoStream

- (FMLiveSwitchMediaStreamStats*) videoStream

Gets the first video stream's stats.

◆ videoStreams

- (NSMutableArray*) videoStreams

Gets the video streams' stats.