FMLiveSwitchCodecStats Class Reference

Codec stats. More...

Instance Methods

(int) - channelCount
 Gets the channel count. More...
 
(int) - clockRate
 Gets the clock rate. More...
 
(FMLiveSwitchCodecType) - codecType
 Gets the codec type, "encode" or "decode", depending on whether this object represents a media format that the implementation is prepared to encode or decode. More...
 
(void) - deserializePropertiesWithKey:valueJson:
 Deserializes the properties. More...
 
(instancetype) - init
 
(bool) - isEquivalentWithInstance:
 Checks if a codec is equivalent to this one. More...
 
(NSString *) - name
 Gets the name. More...
 
(NSString *) - parameters
 Gets the parameters. More...
 
(int) - payloadType
 Gets the payload type. More...
 
(void) - serializePropertiesWithJsonObject:
 Serializes the properties. More...
 
(NSString *) - toJson
 Serializes this to JSON. 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...
 
- Instance Methods inherited from <FMLiveSwitchIEquivalent>
(bool) - isEquivalentWithInstance:
 Checks if an instance is equivalent to this one. More...
 

Class Methods

(FMLiveSwitchCodecStats *) + codecStats
 
(FMLiveSwitchCodecStats *) + fromJsonWithCodecJson:
 Derializes codec stats from JSON. More...
 
(NSString *) + toJsonWithCodec:
 Serializes codec stats to JSON. More...
 
- Class Methods inherited from FMLiveSwitchBaseStats
(FMLiveSwitchBaseStats *) + baseStats
 

Detailed Description

Codec stats.

Method Documentation

◆ channelCount

- (int) channelCount

Gets the channel count.

◆ clockRate

- (int) clockRate

Gets the clock rate.

◆ codecStats

+ (FMLiveSwitchCodecStats*) codecStats

◆ codecType

- (FMLiveSwitchCodecType) codecType

Gets the codec type, "encode" or "decode", depending on whether this object represents a media format that the implementation is prepared to encode or decode.

◆ deserializePropertiesWithKey:valueJson:

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

Deserializes the properties.

Parameters
keyThe key.
valueJsonThe value in JSON format.

Implements FMLiveSwitchBaseStats.

◆ fromJsonWithCodecJson:

+ (FMLiveSwitchCodecStats*) fromJsonWithCodecJson: (NSString *)  codecJson

Derializes codec stats from JSON.

Parameters
codecJsonThe codec's stats JSON.

◆ init

- (instancetype) init

Implements FMLiveSwitchBaseStats.

◆ isEquivalentWithInstance:

- (bool) isEquivalentWithInstance: (FMLiveSwitchCodecStats *)  instance

Checks if a codec is equivalent to this one.

Parameters
instanceThe codec.

◆ name

- (NSString*) name

Gets the name.

◆ parameters

- (NSString*) parameters

Gets the parameters.

◆ payloadType

- (int) payloadType

Gets the payload type.

◆ serializePropertiesWithJsonObject:

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

Serializes the properties.

Parameters
jsonObjectThe JSON object.

Implements FMLiveSwitchBaseStats.

◆ toJson

- (NSString*) toJson

Serializes this to JSON.

◆ toJsonWithCodec:

+ (NSString*) toJsonWithCodec: (FMLiveSwitchCodecStats *)  codec

Serializes codec stats to JSON.

Parameters
codecThe codec's stats.