FMLiveSwitchAudioEncodingConfig Class Reference

Audio encoding configuration. More...

Instance Methods

(NSString *) - description
 Returns a string that represents this instance. More...
 
(instancetype) - init
 Initializes a new instance of the FMLiveSwitchAudioEncodingConfig class. More...
 
(instancetype) - initWithEncoding:
 Initializes a new instance of the FMLiveSwitchAudioEncodingConfig class. More...
 
(NSString *) - toJson
 Serializes this instance to JSON. More...
 
- Instance Methods inherited from FMLiveSwitchEncodingConfig
(int) - bitrate
 Gets the bitrate, in kbps. More...
 
(bool) - deactivated
 Gets whether this encoding is deactivated. More...
 
(void) - deserializePropertiesWithKey:valueJson:
 Deserializes the properties. More...
 
(NSString *) - rtpStreamId
 Gets the RTP stream identifier. More...
 
(void) - serializePropertiesWithJsonObject:
 Serializes the properties. More...
 
(void) - setBitrate:
 Sets the bitrate, in kbps. More...
 
(void) - setDeactivated:
 Sets whether this encoding is deactivated. More...
 
(long long) - synchronizationSource
 Gets the synchronization source. More...
 

Class Methods

(FMLiveSwitchAudioEncodingConfig *) + audioEncodingConfig
 Initializes a new instance of the FMLiveSwitchAudioEncodingConfig class. More...
 
(FMLiveSwitchAudioEncodingConfig *) + audioEncodingConfigWithEncoding:
 Initializes a new instance of the FMLiveSwitchAudioEncodingConfig class. More...
 
(NSMutableArray *) + fromJsonArrayWithEncodingConfigsJson:
 Deserializes an array from JSON. More...
 
(FMLiveSwitchAudioEncodingConfig *) + fromJsonWithEncodingConfigJson:
 Deserializes an instance from JSON. More...
 
(NSString *) + toJsonArrayWithEncodingConfigs:
 Serializes an array to JSON. More...
 
(NSString *) + toJsonWithEncodingConfig:
 Serializes an instance to JSON. More...
 
- Class Methods inherited from FMLiveSwitchEncodingConfig
(FMLiveSwitchEncodingConfig *) + encodingConfig
 Initializes a new instance of the FMLiveSwitchEncodingConfig class. More...
 
(FMLiveSwitchEncodingConfig *) + encodingConfigWithEncoding:
 Initializes a new instance of the FMLiveSwitchEncodingConfig class. More...
 

Detailed Description

Audio encoding configuration.

Method Documentation

◆ audioEncodingConfig

+ (FMLiveSwitchAudioEncodingConfig*) audioEncodingConfig

Initializes a new instance of the FMLiveSwitchAudioEncodingConfig class.

◆ audioEncodingConfigWithEncoding:

+ (FMLiveSwitchAudioEncodingConfig*) audioEncodingConfigWithEncoding: (FMLiveSwitchEncodingInfo *)  encoding

Initializes a new instance of the FMLiveSwitchAudioEncodingConfig class.

Parameters
encodingThe encoding.

◆ description

- (NSString*) description

Returns a string that represents this instance.

Returns
A string that represents this instance.

◆ fromJsonArrayWithEncodingConfigsJson:

+ (NSMutableArray*) fromJsonArrayWithEncodingConfigsJson: (NSString *)  encodingConfigsJson

Deserializes an array from JSON.

Parameters
encodingConfigsJsonThe serialized JSON.
Returns
The deserialized array.

◆ fromJsonWithEncodingConfigJson:

+ (FMLiveSwitchAudioEncodingConfig*) fromJsonWithEncodingConfigJson: (NSString *)  encodingConfigJson

Deserializes an instance from JSON.

Parameters
encodingConfigJsonThe serialized JSON.
Returns
The deserialized instance.

◆ init

- (instancetype) init

Initializes a new instance of the FMLiveSwitchAudioEncodingConfig class.

Implements FMLiveSwitchEncodingConfig.

◆ initWithEncoding:

- (instancetype) initWithEncoding: (FMLiveSwitchEncodingInfo *)  encoding

Initializes a new instance of the FMLiveSwitchAudioEncodingConfig class.

Parameters
encodingThe encoding.

Implements FMLiveSwitchEncodingConfig.

◆ toJson

- (NSString*) toJson

Serializes this instance to JSON.

◆ toJsonArrayWithEncodingConfigs:

+ (NSString*) toJsonArrayWithEncodingConfigs: (NSMutableArray *)  encodingConfigs

Serializes an array to JSON.

Parameters
encodingConfigsThe array to serialize.
Returns
The serialized JSON.

◆ toJsonWithEncodingConfig:

+ (NSString*) toJsonWithEncodingConfig: (FMLiveSwitchAudioEncodingConfig *)  encodingConfig

Serializes an instance to JSON.

Parameters
encodingConfigThe instance to serialize.
Returns
The serialized JSON.