Connection information. More...
Instance Methods | |
(NSString *) | - applicationId |
Gets the application identifier. More... | |
(NSString *) | - audioDirection |
Gets the audio stream direction. More... | |
(NSMutableArray *) | - audioFormats |
Gets the audio formats, if applicable. More... | |
(FMLiveSwitchMediaStreamInfo *) | - audioStream |
Gets the first connection audio stream. More... | |
(NSMutableArray *) | - audioStreams |
Gets the connection audio streams. More... | |
(NSString *) | - channelId |
Gets the channel identifier. More... | |
(NSString *) | - clientId |
Gets the client identifier. More... | |
(NSString *) | - clientProtocol |
Gets the client protocol. More... | |
(NSMutableArray *) | - clientRoles |
Gets the client roles. More... | |
(NSString *) | - clientTag |
Gets the client tag. More... | |
(FMLiveSwitchClientInfo *) | - createClientInfo |
Creates a client info object with details from this connection info object. More... | |
(NSString *) | - dataDirection |
Gets the data stream direction. More... | |
(FMLiveSwitchDataStreamInfo *) | - dataStream |
Gets the connection data stream. More... | |
(void) | - deserializePropertiesWithKey:valueJson: |
Deserializes the properties. More... | |
(NSString *) | - deviceAlias |
Gets the device alias. More... | |
(NSString *) | - deviceId |
Gets the device identifier. More... | |
(FMLiveSwitchError *) | - error |
Gets the connection error, if an error exists. More... | |
(NSString *) | - externalId |
Gets the connection external identifier. More... | |
(bool) | - hasAudio |
Gets a value indicating whether the connection has an audio stream. More... | |
(bool) | - hasData |
Gets a value indicating whether the connection has a data stream. More... | |
(bool) | - hasVideo |
Gets a value indicating whether the connection has a video stream. More... | |
(instancetype) | - init |
Initializes a new instance of the FMLiveSwitchConnectionInfo class. More... | |
(instancetype) | - initWithUserId:deviceId:clientId:id:tag:type:mediaId:localAudioMuted:localVideoMuted:audioDirection:videoDirection:dataDirection:audioFormats:videoFormats: |
Initializes a new instance of the FMLiveSwitchConnectionInfo class. More... | |
(instancetype) | - initWithUserId:userAlias:deviceId:deviceAlias:clientId:clientTag:clientRoles:clientProtocol:id:tag:type:mediaId:localAudioMuted:localVideoMuted:audioDirection:videoDirection:dataDirection:audioFormats:videoFormats:layoutZone:layoutPriority: |
Initializes a new instance of the FMLiveSwitchConnectionInfo class. More... | |
(bool) | - isEquivalentWithConnectionInfo: |
Tests for equivalency. More... | |
(bool) | - isEquivalentWithUserId:deviceId:clientId:id: |
Tests for equivalency. More... | |
(bool) | - isSip |
Gets whether the client is connected via SIP. More... | |
(FMLiveSwitchNullableInt *) | - layoutPriority |
Gets the layout priority. More... | |
(NSString *) | - layoutZone |
Gets the layout zone. More... | |
(bool) | - localAudioDisabled |
Gets if local audio is disabled. More... | |
(bool) | - localAudioMuted |
Gets whether the local audio is muted. More... | |
(bool) | - localAudioUnmuteDisabled |
Gets whether the local audio cannot be unmuted. More... | |
(bool) | - localVideoDisabled |
Gets if local video is disabled. More... | |
(bool) | - localVideoMuted |
Gets whether the local video is muted. More... | |
(bool) | - localVideoUnmuteDisabled |
Gets whether the local video cannot be unmuted. More... | |
(NSString *) | - mediaId |
Gets the media identifier, for MCU or SFU upstream connections. More... | |
(bool) | - recording |
Gets whether the connection is recording. More... | |
(NSString *) | - recordingMode |
Gets the connection recording mode. More... | |
(NSString *) | - recordingTag |
Gets the connection recording tag. More... | |
(bool) | - remoteAudioDisabled |
Gets if remote audio is disabled. More... | |
(bool) | - remoteAudioMuted |
Gets if remote audio is muted. More... | |
(NSString *) | - remoteConnectionId |
Gets the remote connection identifier, for peer or SFU downstream connections. More... | |
(NSString *) | - remoteMediaId |
Gets the remote media identifier, for SFU downstream connections. More... | |
(bool) | - remoteVideoDisabled |
Gets if remote video is disabled. More... | |
(bool) | - remoteVideoMuted |
Gets if remote video is muted. More... | |
(void) | - serializePropertiesWithJsonObject: |
Serializes the properties. More... | |
(void) | - setApplicationId: |
Sets the application identifier. More... | |
(void) | - setAudioStream: |
Sets the first connection audio stream. More... | |
(void) | - setAudioStreams: |
Sets the connection audio streams. More... | |
(void) | - setChannelId: |
Sets the channel identifier. More... | |
(void) | - setClientId: |
Sets the client identifier. More... | |
(void) | - setClientProtocol: |
Sets the client protocol. More... | |
(void) | - setClientRoles: |
Sets the client roles. More... | |
(void) | - setClientTag: |
Sets the client tag. More... | |
(void) | - setDataStream: |
Sets the connection data stream. More... | |
(void) | - setDeviceAlias: |
Sets the device alias. More... | |
(void) | - setDeviceId: |
Sets the device identifier. More... | |
(void) | - setError: |
Sets the connection error, if an error exists. More... | |
(void) | - setExternalId: |
Sets the connection external identifier. More... | |
(void) | - setLayoutPriority: |
Sets the layout priority. More... | |
(void) | - setLayoutZone: |
Sets the layout zone. More... | |
(void) | - setMediaId: |
Sets the media identifier, for MCU or SFU upstream connections. More... | |
(void) | - setRecording: |
Sets whether the connection is recording. More... | |
(void) | - setRecordingMode: |
Sets the connection recording mode. More... | |
(void) | - setRecordingTag: |
Sets the connection recording tag. More... | |
(void) | - setRemoteAudioMuted: |
Sets if remote audio is muted. More... | |
(void) | - setRemoteConnectionId: |
Sets the remote connection identifier, for peer or SFU downstream connections. More... | |
(void) | - setRemoteMediaId: |
Sets the remote media identifier, for SFU downstream connections. More... | |
(void) | - setRemoteVideoMuted: |
Sets if remote video is muted. More... | |
(void) | - setState: |
Sets the connection state. More... | |
(void) | - setTag: |
Sets the connection tag. More... | |
(void) | - setTransports: |
Sets the connection transport information. More... | |
(void) | - setType: |
Sets the connection type. More... | |
(void) | - setUserAlias: |
Sets the user alias. More... | |
(void) | - setUserId: |
Sets the user identifier. More... | |
(void) | - setUseWebSocketsForMedia: |
Sets if we should use websockets for sending media. More... | |
(void) | - setVideoStream: |
Sets the first connection video stream. More... | |
(void) | - setVideoStreams: |
Sets the connection video streams. More... | |
(bool) | - shouldSerializeAudioDirection |
Gets whether to serialize the legacy audio direction property. More... | |
(bool) | - shouldSerializeAudioFormats |
Gets whether to serialize the legacy audio formats property. More... | |
(bool) | - shouldSerializeDataDirection |
Gets whether to serialize the legacy data direction property. More... | |
(bool) | - shouldSerializeLocalAudioMuted |
Gets whether to serialize the legacy local audio muted property. More... | |
(bool) | - shouldSerializeLocalVideoMuted |
Gets whether to serialize the legacy local video muted property. More... | |
(bool) | - shouldSerializeVideoDirection |
Gets whether to serialize the legacy video direction property. More... | |
(bool) | - shouldSerializeVideoFormats |
Gets whether to serialize the legacy video formats property. More... | |
(NSString *) | - state |
Gets the connection state. More... | |
(NSString *) | - tag |
Gets the connection tag. More... | |
(NSString *) | - toJson |
Serializes this instance to Json. More... | |
(NSMutableArray *) | - transports |
Gets the connection transport information. More... | |
(NSString *) | - type |
Gets the connection type. More... | |
(NSString *) | - userAlias |
Gets the user alias. More... | |
(NSString *) | - userId |
Gets the user identifier. More... | |
(bool) | - useWebSocketsForMedia |
Gets if we should use websockets for sending media. More... | |
(NSString *) | - videoDirection |
Gets the video stream direction. More... | |
(NSMutableArray *) | - videoFormats |
Gets the video formats, if applicable. More... | |
(FMLiveSwitchMediaStreamInfo *) | - videoStream |
Gets the first connection video stream. More... | |
(NSMutableArray *) | - videoStreams |
Gets the connection video streams. More... | |
Instance Methods inherited from FMLiveSwitchInfo | |
(NSString *) | - id |
Gets the identifier. More... | |
(void) | - setId: |
Sets the identifier. More... | |
Connection information.
- (NSString*) applicationId |
Gets the application identifier.
- (NSString*) audioDirection |
Gets the audio stream direction.
- (NSMutableArray*) audioFormats |
Gets the audio formats, if applicable.
- (FMLiveSwitchMediaStreamInfo*) audioStream |
Gets the first connection audio stream.
- (NSMutableArray*) audioStreams |
Gets the connection audio streams.
- (NSString*) channelId |
Gets the channel identifier.
- (NSString*) clientId |
Gets the client identifier.
- (NSString*) clientProtocol |
Gets the client protocol.
- (NSMutableArray*) clientRoles |
Gets the client roles.
- (NSString*) clientTag |
Gets the client tag.
+ (FMLiveSwitchConnectionInfo*) connectionInfo |
Initializes a new instance of the FMLiveSwitchConnectionInfo class.
+ (FMLiveSwitchConnectionInfo*) connectionInfoWithUserId: | (NSString *) | userId | |
deviceId: | (NSString *) | deviceId | |
clientId: | (NSString *) | clientId | |
id: | (NSString *) | idValue | |
tag: | (NSString *) | tag | |
type: | (NSString *) | type | |
mediaId: | (NSString *) | mediaId | |
localAudioMuted: | (bool) | localAudioMuted | |
localVideoMuted: | (bool) | localVideoMuted | |
audioDirection: | (NSString *) | audioDirection | |
videoDirection: | (NSString *) | videoDirection | |
dataDirection: | (NSString *) | dataDirection | |
audioFormats: | (NSMutableArray *) | audioFormats | |
videoFormats: | (NSMutableArray *) | videoFormats | |
Initializes a new instance of the FMLiveSwitchConnectionInfo class.
userId | The user identifier. |
deviceId | The device identifier. |
clientId | The client identifier. |
idValue | The connection identifier. |
tag | The connection tag. |
type | The connection type. |
mediaId | The media identifier. |
localAudioMuted | The audio muted boolean. |
localVideoMuted | The video muted boolean. |
audioDirection | The audio direction. |
videoDirection | The video direction. |
dataDirection | The data direction. |
audioFormats | The audio formats. |
videoFormats | The video formats. |
+ (FMLiveSwitchConnectionInfo*) connectionInfoWithUserId: | (NSString *) | userId | |
userAlias: | (NSString *) | userAlias | |
deviceId: | (NSString *) | deviceId | |
deviceAlias: | (NSString *) | deviceAlias | |
clientId: | (NSString *) | clientId | |
clientTag: | (NSString *) | clientTag | |
clientRoles: | (NSMutableArray *) | clientRoles | |
clientProtocol: | (NSString *) | clientProtocol | |
id: | (NSString *) | idValue | |
tag: | (NSString *) | tag | |
type: | (NSString *) | type | |
mediaId: | (NSString *) | mediaId | |
localAudioMuted: | (bool) | localAudioMuted | |
localVideoMuted: | (bool) | localVideoMuted | |
audioDirection: | (NSString *) | audioDirection | |
videoDirection: | (NSString *) | videoDirection | |
dataDirection: | (NSString *) | dataDirection | |
audioFormats: | (NSMutableArray *) | audioFormats | |
videoFormats: | (NSMutableArray *) | videoFormats | |
layoutZone: | (NSString *) | layoutZone | |
layoutPriority: | (FMLiveSwitchNullableInt *) | layoutPriority | |
Initializes a new instance of the FMLiveSwitchConnectionInfo class.
userId | The user identifier. |
userAlias | The user alias. |
deviceId | The device identifier. |
deviceAlias | The device alias. |
clientId | The client identifier. |
clientTag | The client tag. |
clientRoles | The client roles. |
clientProtocol | The client protocol. |
idValue | The connection identifier. |
tag | The connection tag. |
type | The connection type. |
mediaId | The media identifier. |
localAudioMuted | The audio muted boolean. |
localVideoMuted | The video muted boolean. |
audioDirection | The audio direction. |
videoDirection | The video direction. |
dataDirection | The data direction. |
audioFormats | The audio formats. |
videoFormats | The video formats. |
layoutZone | The layout zone. |
layoutPriority | The layout priority. |
- (FMLiveSwitchClientInfo*) createClientInfo |
Creates a client info object with details from this connection info object.
- (NSString*) dataDirection |
Gets the data stream direction.
Obsolete.
- (FMLiveSwitchDataStreamInfo*) dataStream |
Gets the connection data stream.
Deserializes the properties.
key | The key. |
valueJson | The value in JSON format. |
Implements FMLiveSwitchInfo.
- (NSString*) deviceAlias |
Gets the device alias.
- (NSString*) deviceId |
Gets the device identifier.
- (FMLiveSwitchError*) error |
Gets the connection error, if an error exists.
- (NSString*) externalId |
Gets the connection external identifier.
+ (NSMutableArray*) fromJsonArrayWithConnectionInfosJson: | (NSString *) | connectionInfosJson |
Deserializes an array of instances from JSON.
connectionInfosJson | The JSON to deserialize. |
+ (FMLiveSwitchConnectionInfo*) fromJsonWithConnectionInfoJson: | (NSString *) | connectionInfoJson |
Deserializes Json to a ConnectionInfo.
connectionInfoJson | The serialized Json. |
- (bool) hasAudio |
Gets a value indicating whether the connection has an audio stream.
- (bool) hasData |
Gets a value indicating whether the connection has a data stream.
- (bool) hasVideo |
Gets a value indicating whether the connection has a video stream.
- (instancetype) init |
Initializes a new instance of the FMLiveSwitchConnectionInfo class.
Implements FMLiveSwitchInfo.
- (instancetype) initWithUserId: | (NSString *) | userId | |
deviceId: | (NSString *) | deviceId | |
clientId: | (NSString *) | clientId | |
id: | (NSString *) | idValue | |
tag: | (NSString *) | tag | |
type: | (NSString *) | type | |
mediaId: | (NSString *) | mediaId | |
localAudioMuted: | (bool) | localAudioMuted | |
localVideoMuted: | (bool) | localVideoMuted | |
audioDirection: | (NSString *) | audioDirection | |
videoDirection: | (NSString *) | videoDirection | |
dataDirection: | (NSString *) | dataDirection | |
audioFormats: | (NSMutableArray *) | audioFormats | |
videoFormats: | (NSMutableArray *) | videoFormats | |
Initializes a new instance of the FMLiveSwitchConnectionInfo class.
userId | The user identifier. |
deviceId | The device identifier. |
clientId | The client identifier. |
idValue | The connection identifier. |
tag | The connection tag. |
type | The connection type. |
mediaId | The media identifier. |
localAudioMuted | The audio muted boolean. |
localVideoMuted | The video muted boolean. |
audioDirection | The audio direction. |
videoDirection | The video direction. |
dataDirection | The data direction. |
audioFormats | The audio formats. |
videoFormats | The video formats. |
- (instancetype) initWithUserId: | (NSString *) | userId | |
userAlias: | (NSString *) | userAlias | |
deviceId: | (NSString *) | deviceId | |
deviceAlias: | (NSString *) | deviceAlias | |
clientId: | (NSString *) | clientId | |
clientTag: | (NSString *) | clientTag | |
clientRoles: | (NSMutableArray *) | clientRoles | |
clientProtocol: | (NSString *) | clientProtocol | |
id: | (NSString *) | idValue | |
tag: | (NSString *) | tag | |
type: | (NSString *) | type | |
mediaId: | (NSString *) | mediaId | |
localAudioMuted: | (bool) | localAudioMuted | |
localVideoMuted: | (bool) | localVideoMuted | |
audioDirection: | (NSString *) | audioDirection | |
videoDirection: | (NSString *) | videoDirection | |
dataDirection: | (NSString *) | dataDirection | |
audioFormats: | (NSMutableArray *) | audioFormats | |
videoFormats: | (NSMutableArray *) | videoFormats | |
layoutZone: | (NSString *) | layoutZone | |
layoutPriority: | (FMLiveSwitchNullableInt *) | layoutPriority | |
Initializes a new instance of the FMLiveSwitchConnectionInfo class.
userId | The user identifier. |
userAlias | The user alias. |
deviceId | The device identifier. |
deviceAlias | The device alias. |
clientId | The client identifier. |
clientTag | The client tag. |
clientRoles | The client roles. |
clientProtocol | The client protocol. |
idValue | The connection identifier. |
tag | The connection tag. |
type | The connection type. |
mediaId | The media identifier. |
localAudioMuted | The audio muted boolean. |
localVideoMuted | The video muted boolean. |
audioDirection | The audio direction. |
videoDirection | The video direction. |
dataDirection | The data direction. |
audioFormats | The audio formats. |
videoFormats | The video formats. |
layoutZone | The layout zone. |
layoutPriority | The layout priority. |
- (bool) isEquivalentWithConnectionInfo: | (FMLiveSwitchConnectionInfo *) | connectionInfo |
Tests for equivalency.
connectionInfo | The connection information. |
true
if equivalent; otherwise, false
. - (bool) isEquivalentWithUserId: | (NSString *) | userId | |
deviceId: | (NSString *) | deviceId | |
clientId: | (NSString *) | clientId | |
id: | (NSString *) | idValue | |
Tests for equivalency.
userId | The user identifier. |
deviceId | The device identifier. |
clientId | The client identifier. |
idValue | The connection identifier. |
true
if equivalent; otherwise, false
. - (bool) isSip |
Gets whether the client is connected via SIP.
- (FMLiveSwitchNullableInt*) layoutPriority |
Gets the layout priority.
- (NSString*) layoutZone |
Gets the layout zone.
- (bool) localAudioDisabled |
Gets if local audio is disabled.
- (bool) localAudioMuted |
Gets whether the local audio is muted.
Returns true if the local audio is muted and false otherwise.
- (bool) localAudioUnmuteDisabled |
Gets whether the local audio cannot be unmuted.
Returns true if the local audio cannot be unmuted and false otherwise.
- (bool) localVideoDisabled |
Gets if local video is disabled.
- (bool) localVideoMuted |
Gets whether the local video is muted.
Returns true if the local video is muted and false otherwise.
- (bool) localVideoUnmuteDisabled |
Gets whether the local video cannot be unmuted.
Returns true if the local video cannot be unmuted and false otherwise.
- (NSString*) mediaId |
Gets the media identifier, for MCU or SFU upstream connections.
- (bool) recording |
Gets whether the connection is recording.
- (NSString*) recordingMode |
Gets the connection recording mode.
- (NSString*) recordingTag |
Gets the connection recording tag.
- (bool) remoteAudioDisabled |
Gets if remote audio is disabled.
- (bool) remoteAudioMuted |
Gets if remote audio is muted.
- (NSString*) remoteConnectionId |
Gets the remote connection identifier, for peer or SFU downstream connections.
- (NSString*) remoteMediaId |
Gets the remote media identifier, for SFU downstream connections.
- (bool) remoteVideoDisabled |
Gets if remote video is disabled.
- (bool) remoteVideoMuted |
Gets if remote video is muted.
- (void) setApplicationId: | (NSString *) | value |
Sets the application identifier.
- (void) setAudioStream: | (FMLiveSwitchMediaStreamInfo *) | value |
Sets the first connection audio stream.
- (void) setAudioStreams: | (NSMutableArray *) | value |
Sets the connection audio streams.
- (void) setChannelId: | (NSString *) | value |
Sets the channel identifier.
- (void) setClientId: | (NSString *) | value |
Sets the client identifier.
- (void) setClientProtocol: | (NSString *) | value |
Sets the client protocol.
- (void) setClientRoles: | (NSMutableArray *) | value |
Sets the client roles.
- (void) setClientTag: | (NSString *) | value |
Sets the client tag.
- (void) setDataStream: | (FMLiveSwitchDataStreamInfo *) | value |
Sets the connection data stream.
- (void) setDeviceAlias: | (NSString *) | value |
Sets the device alias.
- (void) setDeviceId: | (NSString *) | value |
Sets the device identifier.
- (void) setError: | (FMLiveSwitchError *) | value |
Sets the connection error, if an error exists.
- (void) setExternalId: | (NSString *) | value |
Sets the connection external identifier.
- (void) setLayoutPriority: | (FMLiveSwitchNullableInt *) | value |
Sets the layout priority.
- (void) setLayoutZone: | (NSString *) | value |
Sets the layout zone.
- (void) setMediaId: | (NSString *) | value |
Sets the media identifier, for MCU or SFU upstream connections.
- (void) setRecording: | (bool) | value |
Sets whether the connection is recording.
- (void) setRecordingMode: | (NSString *) | value |
Sets the connection recording mode.
- (void) setRecordingTag: | (NSString *) | value |
Sets the connection recording tag.
- (void) setRemoteAudioMuted: | (bool) | value |
Sets if remote audio is muted.
- (void) setRemoteConnectionId: | (NSString *) | value |
Sets the remote connection identifier, for peer or SFU downstream connections.
- (void) setRemoteMediaId: | (NSString *) | value |
Sets the remote media identifier, for SFU downstream connections.
- (void) setRemoteVideoMuted: | (bool) | value |
Sets if remote video is muted.
- (void) setState: | (NSString *) | value |
Sets the connection state.
- (void) setTag: | (NSString *) | value |
Sets the connection tag.
- (void) setTransports: | (NSMutableArray *) | value |
Sets the connection transport information.
This will be null
if BUNDLE is inactive.
- (void) setType: | (NSString *) | value |
Sets the connection type.
- (void) setUserAlias: | (NSString *) | value |
Sets the user alias.
- (void) setUserId: | (NSString *) | value |
Sets the user identifier.
- (void) setUseWebSocketsForMedia: | (bool) | value |
Sets if we should use websockets for sending media.
- (void) setVideoStream: | (FMLiveSwitchMediaStreamInfo *) | value |
Sets the first connection video stream.
- (void) setVideoStreams: | (NSMutableArray *) | value |
Sets the connection video streams.
- (bool) shouldSerializeAudioDirection |
Gets whether to serialize the legacy audio direction property.
- (bool) shouldSerializeAudioFormats |
Gets whether to serialize the legacy audio formats property.
- (bool) shouldSerializeDataDirection |
Gets whether to serialize the legacy data direction property.
- (bool) shouldSerializeLocalAudioMuted |
Gets whether to serialize the legacy local audio muted property.
- (bool) shouldSerializeLocalVideoMuted |
Gets whether to serialize the legacy local video muted property.
- (bool) shouldSerializeVideoDirection |
Gets whether to serialize the legacy video direction property.
- (bool) shouldSerializeVideoFormats |
Gets whether to serialize the legacy video formats property.
- (NSString*) state |
Gets the connection state.
- (NSString*) tag |
Gets the connection tag.
- (NSString*) toJson |
Serializes this instance to Json.
+ (NSString*) toJsonArrayWithConnectionInfos: | (NSMutableArray *) | connectionInfos |
Serializes an array of instances to JSON.
connectionInfos | The connection infos to serialize. |
+ (NSString*) toJsonWithConnectionInfo: | (FMLiveSwitchConnectionInfo *) | connectionInfo |
Serializes an instance to Json.
connectionInfo | The instance to serialize. |
- (NSMutableArray*) transports |
Gets the connection transport information.
This will be null
if BUNDLE is inactive.
- (NSString*) type |
Gets the connection type.
- (NSString*) userAlias |
Gets the user alias.
- (NSString*) userId |
Gets the user identifier.
- (bool) useWebSocketsForMedia |
Gets if we should use websockets for sending media.
- (NSString*) videoDirection |
Gets the video stream direction.
- (NSMutableArray*) videoFormats |
Gets the video formats, if applicable.
- (FMLiveSwitchMediaStreamInfo*) videoStream |
Gets the first connection video stream.
- (NSMutableArray*) videoStreams |
Gets the connection video streams.