fm.liveswitch.AudioEncodingConfig Class Reference

Audio encoding configuration. More...

Public Member Functions

 AudioEncodingConfig ()
 Initializes a new instance of the fm.liveswitch.AudioEncodingConfig class. More...
 
 AudioEncodingConfig (fm.liveswitch.EncodingInfo encoding)
 Initializes a new instance of the fm.liveswitch.AudioEncodingConfig class. More...
 
String toJson ()
 Serializes this instance to JSON. More...
 
String toString ()
 Returns a string that represents this instance. More...
 
- Public Member Functions inherited from fm.liveswitch.EncodingConfig
 EncodingConfig ()
 Initializes a new instance of the fm.liveswitch.EncodingConfig class. More...
 
 EncodingConfig (fm.liveswitch.EncodingInfo encoding)
 Initializes a new instance of the fm.liveswitch.EncodingConfig class. More...
 
int getBitrate ()
 Gets the bitrate, in kbps. More...
 
boolean getDeactivated ()
 Gets whether this encoding is deactivated. More...
 
String getRtpStreamId ()
 Gets the RTP stream identifier. More...
 
long getSynchronizationSource ()
 Gets the synchronization source. More...
 
void setBitrate (int value)
 Sets the bitrate, in kbps. More...
 
void setDeactivated (boolean value)
 Sets whether this encoding is deactivated. More...
 

Static Public Member Functions

static fm.liveswitch.AudioEncodingConfig fromJson (String encodingConfigJson)
 Deserializes an instance from JSON. More...
 
static fm.liveswitch.AudioEncodingConfig[] fromJsonArray (String encodingConfigsJson)
 Deserializes an array from JSON. More...
 
static String toJson (fm.liveswitch.AudioEncodingConfig encodingConfig)
 Serializes an instance to JSON. More...
 
static String toJsonArray (fm.liveswitch.AudioEncodingConfig[] encodingConfigs)
 Serializes an array to JSON. More...
 

Additional Inherited Members

- Protected Member Functions inherited from fm.liveswitch.EncodingConfig
void deserializeProperties (String key, String valueJson)
 Deserializes the properties. More...
 
void serializeProperties (java.util.HashMap< String, String > jsonObject)
 Serializes the properties. More...
 

Detailed Description

Audio encoding configuration.

Constructor & Destructor Documentation

◆ AudioEncodingConfig() [1/2]

fm.liveswitch.AudioEncodingConfig.AudioEncodingConfig ( )

Initializes a new instance of the fm.liveswitch.AudioEncodingConfig class.

◆ AudioEncodingConfig() [2/2]

fm.liveswitch.AudioEncodingConfig.AudioEncodingConfig ( fm.liveswitch.EncodingInfo  encoding)

Initializes a new instance of the fm.liveswitch.AudioEncodingConfig class.

Parameters
encodingThe encoding.

Member Function Documentation

◆ fromJson()

static fm.liveswitch.AudioEncodingConfig fm.liveswitch.AudioEncodingConfig.fromJson ( String  encodingConfigJson)
static

Deserializes an instance from JSON.

Parameters
encodingConfigJsonThe serialized JSON.
Returns
The deserialized instance.

◆ fromJsonArray()

static fm.liveswitch.AudioEncodingConfig [] fm.liveswitch.AudioEncodingConfig.fromJsonArray ( String  encodingConfigsJson)
static

Deserializes an array from JSON.

Parameters
encodingConfigsJsonThe serialized JSON.
Returns
The deserialized array.

◆ toJson() [1/2]

String fm.liveswitch.AudioEncodingConfig.toJson ( )

Serializes this instance to JSON.

◆ toJson() [2/2]

static String fm.liveswitch.AudioEncodingConfig.toJson ( fm.liveswitch.AudioEncodingConfig  encodingConfig)
static

Serializes an instance to JSON.

Parameters
encodingConfigThe instance to serialize.
Returns
The serialized JSON.

◆ toJsonArray()

static String fm.liveswitch.AudioEncodingConfig.toJsonArray ( fm.liveswitch.AudioEncodingConfig[]  encodingConfigs)
static

Serializes an array to JSON.

Parameters
encodingConfigsThe array to serialize.
Returns
The serialized JSON.

◆ toString()

String fm.liveswitch.AudioEncodingConfig.toString ( )

Returns a string that represents this instance.

Returns
A string that represents this instance.