FMLiveSwitchStreamStats Class Reference

Stream stats. More...

Instance Methods

(void) - deserializePropertiesWithKey:valueJson:
 Deserializes the properties. More...
 
(instancetype) - init
 
(bool) - isHost
 Gets whether the transport's active candidate pair has a host candidate. More...
 
(bool) - isReflexive
 Gets whether the transport's active candidate pair has a reflexive candidate. More...
 
(bool) - isRelayed
 Gets whether the transport's active candidate pair has a relayed candidate. More...
 
(void) - serializePropertiesWithJsonObject:
 Serializes the properties. More...
 
(FMLiveSwitchTransportStats *) - transport
 Gets the transport's stats. More...
 
(FMLiveSwitchStreamType) - type
 Gets the type. 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

(FMLiveSwitchStreamStats *) + streamStats
 
- Class Methods inherited from FMLiveSwitchBaseStats
(FMLiveSwitchBaseStats *) + baseStats
 

Detailed Description

Stream stats.

Method Documentation

◆ deserializePropertiesWithKey:valueJson:

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

Deserializes the properties.

Parameters
keyThe key.
valueJsonThe value in JSON format.

Implements FMLiveSwitchBaseStats.

Implemented in FMLiveSwitchMediaStreamStats, and FMLiveSwitchDataStreamStats.

◆ init

- (instancetype) init

◆ isHost

- (bool) isHost

Gets whether the transport's active candidate pair has a host candidate.

◆ isReflexive

- (bool) isReflexive

Gets whether the transport's active candidate pair has a reflexive candidate.

◆ isRelayed

- (bool) isRelayed

Gets whether the transport's active candidate pair has a relayed candidate.

◆ serializePropertiesWithJsonObject:

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

Serializes the properties.

Parameters
jsonObjectThe JSON object.

Implements FMLiveSwitchBaseStats.

Implemented in FMLiveSwitchMediaStreamStats, and FMLiveSwitchDataStreamStats.

◆ streamStats

+ (FMLiveSwitchStreamStats*) streamStats

◆ transport

Gets the transport's stats.

◆ type

- (FMLiveSwitchStreamType) type

Gets the type.