fm.liveswitch.ConnectionConfig Class Reference

Connection configuration. More...

Public Member Functions

String getAudioDirection ()
 Gets the audio direction ("sendrecv", "sendonly", "recvonly", or "inactive"). More...
 
String getDataDirection ()
 Gets the data direction ("sendrecv", "sendonly", "recvonly", or "inactive"). More...
 
boolean getLocalAudioDisabled ()
 Gets if local audio is disabled. More...
 
boolean getLocalAudioMuted ()
 Gets if the local audio is muted. More...
 
boolean getLocalDataDisabled ()
 Gets if local data is disabled. More...
 
boolean getLocalVideoDisabled ()
 Gets if local video is disabled. More...
 
boolean getLocalVideoMuted ()
 Gets if the local video is muted. More...
 
boolean getRemoteAudioDisabled ()
 Gets if remote audio is disabled. More...
 
fm.liveswitch.EncodingInfo getRemoteAudioEncoding ()
 Gets the remote audio encoding. More...
 
boolean getRemoteDataDisabled ()
 Gets if remote data is disabled. More...
 
boolean getRemoteVideoDisabled ()
 Gets if remote video is disabled. More...
 
fm.liveswitch.EncodingInfo getRemoteVideoEncoding ()
 Gets the remote video encoding. More...
 
String getTag ()
 Gets the tag for this connection. More...
 
String getVideoDirection ()
 Gets the video direction ("sendrecv", "sendonly", "recvonly", or "inactive"). More...
 
void setAudioDirection (String value)
 Sets the audio direction ("sendrecv", "sendonly", "recvonly", or "inactive"). More...
 
void setDataDirection (String value)
 Sets the data direction ("sendrecv", "sendonly", "recvonly", or "inactive"). More...
 
void setLocalAudioDisabled (boolean value)
 Sets if local audio is disabled. More...
 
void setLocalAudioMuted (boolean value)
 Sets if the local audio is muted. More...
 
void setLocalDataDisabled (boolean value)
 Sets if local data is disabled. More...
 
void setLocalVideoDisabled (boolean value)
 Sets if local video is disabled. More...
 
void setLocalVideoMuted (boolean value)
 Sets if the local video is muted. More...
 
void setRemoteAudioDisabled (boolean value)
 Sets if remote audio is disabled. More...
 
void setRemoteAudioEncoding (fm.liveswitch.EncodingInfo value)
 Sets the remote audio encoding. More...
 
void setRemoteDataDisabled (boolean value)
 Sets if remote data is disabled. More...
 
void setRemoteVideoDisabled (boolean value)
 Sets if remote video is disabled. More...
 
void setRemoteVideoEncoding (fm.liveswitch.EncodingInfo value)
 Sets the remote video encoding. More...
 
void setTag (String value)
 Sets the tag for this connection. More...
 
void setVideoDirection (String value)
 Sets the video direction ("sendrecv", "sendonly", "recvonly", or "inactive"). More...
 
String toJson ()
 Serializes this instance to JSON. More...
 

Static Public Member Functions

static fm.liveswitch.ConnectionConfig fromJson (String connectionConfigJson)
 Deserializes an instance from JSON. More...
 
static String toJson (fm.liveswitch.ConnectionConfig connectionConfig)
 Serializes an instance to JSON. More...
 

Detailed Description

Connection configuration.

Member Function Documentation

◆ fromJson()

static fm.liveswitch.ConnectionConfig fm.liveswitch.ConnectionConfig.fromJson ( String  connectionConfigJson)
static

Deserializes an instance from JSON.

Parameters
connectionConfigJsonThe JSON to deserialize.
Returns
The deserialized connection config.

◆ getAudioDirection()

String fm.liveswitch.ConnectionConfig.getAudioDirection ( )

Gets the audio direction ("sendrecv", "sendonly", "recvonly", or "inactive").

◆ getDataDirection()

String fm.liveswitch.ConnectionConfig.getDataDirection ( )

Gets the data direction ("sendrecv", "sendonly", "recvonly", or "inactive").

◆ getLocalAudioDisabled()

boolean fm.liveswitch.ConnectionConfig.getLocalAudioDisabled ( )

Gets if local audio is disabled.

◆ getLocalAudioMuted()

boolean fm.liveswitch.ConnectionConfig.getLocalAudioMuted ( )

Gets if the local audio is muted.

◆ getLocalDataDisabled()

boolean fm.liveswitch.ConnectionConfig.getLocalDataDisabled ( )

Gets if local data is disabled.

◆ getLocalVideoDisabled()

boolean fm.liveswitch.ConnectionConfig.getLocalVideoDisabled ( )

Gets if local video is disabled.

◆ getLocalVideoMuted()

boolean fm.liveswitch.ConnectionConfig.getLocalVideoMuted ( )

Gets if the local video is muted.

◆ getRemoteAudioDisabled()

boolean fm.liveswitch.ConnectionConfig.getRemoteAudioDisabled ( )

Gets if remote audio is disabled.

◆ getRemoteAudioEncoding()

fm.liveswitch.EncodingInfo fm.liveswitch.ConnectionConfig.getRemoteAudioEncoding ( )

Gets the remote audio encoding.

◆ getRemoteDataDisabled()

boolean fm.liveswitch.ConnectionConfig.getRemoteDataDisabled ( )

Gets if remote data is disabled.

◆ getRemoteVideoDisabled()

boolean fm.liveswitch.ConnectionConfig.getRemoteVideoDisabled ( )

Gets if remote video is disabled.

◆ getRemoteVideoEncoding()

fm.liveswitch.EncodingInfo fm.liveswitch.ConnectionConfig.getRemoteVideoEncoding ( )

Gets the remote video encoding.

◆ getTag()

String fm.liveswitch.ConnectionConfig.getTag ( )

Gets the tag for this connection.

◆ getVideoDirection()

String fm.liveswitch.ConnectionConfig.getVideoDirection ( )

Gets the video direction ("sendrecv", "sendonly", "recvonly", or "inactive").

◆ setAudioDirection()

void fm.liveswitch.ConnectionConfig.setAudioDirection ( String  value)

Sets the audio direction ("sendrecv", "sendonly", "recvonly", or "inactive").

◆ setDataDirection()

void fm.liveswitch.ConnectionConfig.setDataDirection ( String  value)

Sets the data direction ("sendrecv", "sendonly", "recvonly", or "inactive").

◆ setLocalAudioDisabled()

void fm.liveswitch.ConnectionConfig.setLocalAudioDisabled ( boolean  value)

Sets if local audio is disabled.

◆ setLocalAudioMuted()

void fm.liveswitch.ConnectionConfig.setLocalAudioMuted ( boolean  value)

Sets if the local audio is muted.

◆ setLocalDataDisabled()

void fm.liveswitch.ConnectionConfig.setLocalDataDisabled ( boolean  value)

Sets if local data is disabled.

◆ setLocalVideoDisabled()

void fm.liveswitch.ConnectionConfig.setLocalVideoDisabled ( boolean  value)

Sets if local video is disabled.

◆ setLocalVideoMuted()

void fm.liveswitch.ConnectionConfig.setLocalVideoMuted ( boolean  value)

Sets if the local video is muted.

◆ setRemoteAudioDisabled()

void fm.liveswitch.ConnectionConfig.setRemoteAudioDisabled ( boolean  value)

Sets if remote audio is disabled.

◆ setRemoteAudioEncoding()

void fm.liveswitch.ConnectionConfig.setRemoteAudioEncoding ( fm.liveswitch.EncodingInfo  value)

Sets the remote audio encoding.

◆ setRemoteDataDisabled()

void fm.liveswitch.ConnectionConfig.setRemoteDataDisabled ( boolean  value)

Sets if remote data is disabled.

◆ setRemoteVideoDisabled()

void fm.liveswitch.ConnectionConfig.setRemoteVideoDisabled ( boolean  value)

Sets if remote video is disabled.

◆ setRemoteVideoEncoding()

void fm.liveswitch.ConnectionConfig.setRemoteVideoEncoding ( fm.liveswitch.EncodingInfo  value)

Sets the remote video encoding.

◆ setTag()

void fm.liveswitch.ConnectionConfig.setTag ( String  value)

Sets the tag for this connection.

◆ setVideoDirection()

void fm.liveswitch.ConnectionConfig.setVideoDirection ( String  value)

Sets the video direction ("sendrecv", "sendonly", "recvonly", or "inactive").

◆ toJson() [1/2]

String fm.liveswitch.ConnectionConfig.toJson ( )

Serializes this instance to JSON.

◆ toJson() [2/2]

static String fm.liveswitch.ConnectionConfig.toJson ( fm.liveswitch.ConnectionConfig  connectionConfig)
static

Serializes an instance to JSON.

Parameters
connectionConfigThe connection config to serialize.
Returns
The serialized JSON.