Connection interface. More...
Instance Methods | |
(void) | - addIceServer: |
Adds an ICE server. More... | |
(void) | - addIceServers: |
Adds some ICE servers. More... | |
(void) | - addOnExternalIdChange: |
Adds a handler that is raised when external connection Id changes. More... | |
(NSString *, NSString *) | - addOnExternalIdChangeWithBlock |
Adds a handler that is raised when external connection Id changes. More... | |
(void) | - addOnExternalIdChangeWithBlock: |
Adds a handler that is raised when external connection Id changes. More... | |
(void) | - addOnGatheringStateChange: |
Adds a handler that is raised when the gathering state changes. More... | |
(id) | - addOnGatheringStateChangeWithBlock |
Adds a handler that is raised when the gathering state changes. More... | |
(void) | - addOnGatheringStateChangeWithBlock: |
Adds a handler that is raised when the gathering state changes. More... | |
(void) | - addOnIceConnectionStateChange: |
Adds a handler that is raised when the Ice connection state changes. More... | |
(id) | - addOnIceConnectionStateChangeWithBlock |
Adds a handler that is raised when the Ice connection state changes. More... | |
(void) | - addOnIceConnectionStateChangeWithBlock: |
Adds a handler that is raised when the Ice connection state changes. More... | |
(void) | - addOnLocalCandidate: |
Adds a handler that is raised when a local candidate is added. More... | |
(id, FMLiveSwitchCandidate *) | - addOnLocalCandidateWithBlock |
Adds a handler that is raised when a local candidate is added. More... | |
(void) | - addOnLocalCandidateWithBlock: |
Adds a handler that is raised when a local candidate is added. More... | |
(void) | - addOnLocalDescription: |
Adds a handler that is raised when a local description is set. More... | |
(id, FMLiveSwitchSessionDescription *) | - addOnLocalDescriptionWithBlock |
Adds a handler that is raised when a local description is set. More... | |
(void) | - addOnLocalDescriptionWithBlock: |
Adds a handler that is raised when a local description is set. More... | |
(void) | - addOnRemoteCandidate: |
Adds a handler that is raised when a remote candidate is added. More... | |
(id, FMLiveSwitchCandidate *) | - addOnRemoteCandidateWithBlock |
Adds a handler that is raised when a remote candidate is added. More... | |
(void) | - addOnRemoteCandidateWithBlock: |
Adds a handler that is raised when a remote candidate is added. More... | |
(void) | - addOnRemoteDescription: |
Adds a handler that is raised when a remote description is set. More... | |
(id, FMLiveSwitchSessionDescription *) | - addOnRemoteDescriptionWithBlock |
Adds a handler that is raised when a remote description is set. More... | |
(void) | - addOnRemoteDescriptionWithBlock: |
Adds a handler that is raised when a remote description is set. More... | |
(void) | - addOnSignallingStateChange: |
Adds a handler that is raised when the signalling state changes. More... | |
(id) | - addOnSignallingStateChangeWithBlock |
Adds a handler that is raised when the signalling state changes. More... | |
(void) | - addOnSignallingStateChangeWithBlock: |
Adds a handler that is raised when the signalling state changes. More... | |
(void) | - addOnStateChange: |
Adds a handler that is raised when the connection state changes. More... | |
(id) | - addOnStateChangeWithBlock |
Adds a handler that is raised when the connection state changes. More... | |
(void) | - addOnStateChangeWithBlock: |
Adds a handler that is raised when the connection state changes. More... | |
(FMLiveSwitchFuture *) | - addRemoteCandidate: |
Adds the remote candidate. More... | |
(id) | - audioStream |
Gets the first audio stream. More... | |
(NSMutableArray *) | - audioStreams |
Gets the audio streams. More... | |
(FMLiveSwitchBundlePolicy) | - bundlePolicy |
Gets the bundle policy for this connection. More... | |
(NSString *) | - canonicalName |
Gets the canonical name. More... | |
(bool) | - close |
Closes this instance. More... | |
(FMLiveSwitchFuture *) | - createAnswer |
Creates an answer. More... | |
(FMLiveSwitchFuture *) | - createOffer |
Creates an offer. More... | |
(id) | - dataStream |
Gets the first data stream. More... | |
(NSMutableArray *) | - dataStreams |
Gets the data streams. More... | |
(int) | - deadStreamTimeout |
Gets the amount of time (in milliseconds) to wait for connectivity checks to re-establish after they start to fail on a live connection. More... | |
(FMLiveSwitchError *) | - error |
Gets the error. More... | |
(NSString *) | - externalId |
Gets the external identifier. More... | |
(FMLiveSwitchIceGatheringState) | - gatheringState |
Gets the ICE gathering state. More... | |
(FMLiveSwitchFuture *) | - getStats |
Gets connection stats. More... | |
(bool) | - hasAudio |
Gets whether this connection has an audio stream. More... | |
(bool) | - hasData |
Gets whether this connection has a data stream. More... | |
(bool) | - hasVideo |
Gets whether this connection has a video stream. More... | |
(FMLiveSwitchIceConnectionState) | - iceConnectionState |
Gets the ICE connection state. More... | |
(FMLiveSwitchIceGatherPolicy) | - iceGatherPolicy |
Gets the ICE gather policy. More... | |
(FMLiveSwitchIceServer *) | - iceServer |
Gets the ICE server. More... | |
(NSMutableArray *) | - iceServers |
Gets the ICE servers. More... | |
(NSString *) | - id |
Gets the identifier. More... | |
(bool) | - legacyTimeout |
Gets a value indicating whether legacy Connection.Timeout should be used. More... | |
(FMLiveSwitchSessionDescription *) | - localDescription |
Gets the local description. More... | |
(FMLiveSwitchMediaProtocol) | - mediaProtocol |
Gets the media protocol in use on this connection. More... | |
(FMLiveSwitchSessionDescription *) | - remoteDescription |
Gets the remote description. More... | |
(void) | - removeIceServer: |
Removes an ICE server. More... | |
(void) | - removeIceServers: |
Removes some ICE servers. More... | |
(void) | - removeOnExternalIdChange: |
Removes a handler that is raised when external connection Id changes. More... | |
(void) | - removeOnGatheringStateChange: |
Removes a handler that is raised when the gathering state changes. More... | |
(void) | - removeOnIceConnectionStateChange: |
Removes a handler that is raised when the Ice connection state changes. More... | |
(void) | - removeOnLocalCandidate: |
Removes a handler that is raised when a local candidate is added. More... | |
(void) | - removeOnLocalDescription: |
Removes a handler that is raised when a local description is set. More... | |
(void) | - removeOnRemoteCandidate: |
Removes a handler that is raised when a remote candidate is added. More... | |
(void) | - removeOnRemoteDescription: |
Removes a handler that is raised when a remote description is set. More... | |
(void) | - removeOnSignallingStateChange: |
Removes a handler that is raised when the signalling state changes. More... | |
(void) | - removeOnStateChange: |
Removes a handler that is raised when the connection state changes. More... | |
(void) | - setBundlePolicy: |
Sets the bundle policy for this connection. More... | |
(void) | - setDeadStreamTimeout: |
Sets the amount of time (in milliseconds) to wait for connectivity checks to re-establish after they start to fail on a live connection. More... | |
(void) | - setError: |
Sets the error. More... | |
(void) | - setExternalId: |
Sets the external identifier. More... | |
(void) | - setIceGatherPolicy: |
Sets the ICE gather policy. More... | |
(void) | - setIceServer: |
Sets the ICE server. More... | |
(void) | - setIceServers: |
Sets the ICE servers. More... | |
(void) | - setLegacyTimeout: |
Sets a value indicating whether legacy Connection.Timeout should be used. More... | |
(FMLiveSwitchFuture *) | - setLocalDescription: |
Sets the local description. More... | |
(FMLiveSwitchFuture *) | - setRemoteDescription: |
Sets the remote description. More... | |
(void) | - setTieBreaker: |
Sets the tie breaker. More... | |
(void) | - setTimeout: |
Sets the amount of time (in milliseconds) to wait for a connection to establish before giving up and closing it. More... | |
(void) | - setTrickleIcePolicy: |
Sets the trickle ICE policy. More... | |
(FMLiveSwitchSignallingState) | - signallingState |
Gets the current signalling state. More... | |
(FMLiveSwitchConnectionState) | - state |
Gets the current state. More... | |
(NSMutableArray *) | - streams |
Gets the streams. More... | |
(NSString *) | - tieBreaker |
Gets the tie breaker. More... | |
(int) | - timeout |
Gets the amount of time (in milliseconds) to wait for a connection to establish before giving up and closing it. More... | |
(FMLiveSwitchTrickleIcePolicy) | - trickleIcePolicy |
Gets the trickle ICE policy. More... | |
(id) | - videoStream |
Gets the first video stream. More... | |
(NSMutableArray *) | - videoStreams |
Gets the video streams. More... | |
Connection interface.
- (void) addIceServer: | (FMLiveSwitchIceServer *) | iceServer |
Adds an ICE server.
- (void) addIceServers: | (NSMutableArray *) | iceServers |
Adds some ICE servers.
- (void) addOnExternalIdChange: | (FMLiveSwitchAction2 *) | value |
Adds a handler that is raised when external connection Id changes.
Adds a handler that is raised when external connection Id changes.
Adds a handler that is raised when external connection Id changes.
- (void) addOnGatheringStateChange: | (FMLiveSwitchAction1 *) | value |
Adds a handler that is raised when the gathering state changes.
- (id) addOnGatheringStateChangeWithBlock |
Adds a handler that is raised when the gathering state changes.
- (void) addOnGatheringStateChangeWithBlock: | (void(^)(id)) | valueBlock |
Adds a handler that is raised when the gathering state changes.
- (void) addOnIceConnectionStateChange: | (FMLiveSwitchAction1 *) | value |
Adds a handler that is raised when the Ice connection state changes.
- (id) addOnIceConnectionStateChangeWithBlock |
Adds a handler that is raised when the Ice connection state changes.
- (void) addOnIceConnectionStateChangeWithBlock: | (void(^)(id)) | valueBlock |
Adds a handler that is raised when the Ice connection state changes.
- (void) addOnLocalCandidate: | (FMLiveSwitchAction2 *) | value |
Adds a handler that is raised when a local candidate is added.
- (id, FMLiveSwitchCandidate*) addOnLocalCandidateWithBlock |
Adds a handler that is raised when a local candidate is added.
- (void) addOnLocalCandidateWithBlock: | (void(^)(id, FMLiveSwitchCandidate *)) | valueBlock |
Adds a handler that is raised when a local candidate is added.
- (void) addOnLocalDescription: | (FMLiveSwitchAction2 *) | value |
Adds a handler that is raised when a local description is set.
- (id, FMLiveSwitchSessionDescription*) addOnLocalDescriptionWithBlock |
Adds a handler that is raised when a local description is set.
- (void) addOnLocalDescriptionWithBlock: | (void(^)(id, FMLiveSwitchSessionDescription *)) | valueBlock |
Adds a handler that is raised when a local description is set.
- (void) addOnRemoteCandidate: | (FMLiveSwitchAction2 *) | value |
Adds a handler that is raised when a remote candidate is added.
- (id, FMLiveSwitchCandidate*) addOnRemoteCandidateWithBlock |
Adds a handler that is raised when a remote candidate is added.
- (void) addOnRemoteCandidateWithBlock: | (void(^)(id, FMLiveSwitchCandidate *)) | valueBlock |
Adds a handler that is raised when a remote candidate is added.
- (void) addOnRemoteDescription: | (FMLiveSwitchAction2 *) | value |
Adds a handler that is raised when a remote description is set.
- (id, FMLiveSwitchSessionDescription*) addOnRemoteDescriptionWithBlock |
Adds a handler that is raised when a remote description is set.
- (void) addOnRemoteDescriptionWithBlock: | (void(^)(id, FMLiveSwitchSessionDescription *)) | valueBlock |
Adds a handler that is raised when a remote description is set.
- (void) addOnSignallingStateChange: | (FMLiveSwitchAction1 *) | value |
Adds a handler that is raised when the signalling state changes.
- (id) addOnSignallingStateChangeWithBlock |
Adds a handler that is raised when the signalling state changes.
- (void) addOnSignallingStateChangeWithBlock: | (void(^)(id)) | valueBlock |
Adds a handler that is raised when the signalling state changes.
- (void) addOnStateChange: | (FMLiveSwitchAction1 *) | value |
Adds a handler that is raised when the connection state changes.
- (id) addOnStateChangeWithBlock |
Adds a handler that is raised when the connection state changes.
- (void) addOnStateChangeWithBlock: | (void(^)(id)) | valueBlock |
Adds a handler that is raised when the connection state changes.
- (FMLiveSwitchFuture*) addRemoteCandidate: | (FMLiveSwitchCandidate *) | remoteCandidate |
Adds the remote candidate.
- (id) audioStream |
Gets the first audio stream.
- (NSMutableArray*) audioStreams |
Gets the audio streams.
- (FMLiveSwitchBundlePolicy) bundlePolicy |
Gets the bundle policy for this connection.
- (NSString*) canonicalName |
Gets the canonical name.
- (bool) close |
Closes this instance.
- (FMLiveSwitchFuture*) createAnswer |
Creates an answer.
- (FMLiveSwitchFuture*) createOffer |
Creates an offer.
- (id) dataStream |
Gets the first data stream.
- (NSMutableArray*) dataStreams |
Gets the data streams.
- (int) deadStreamTimeout |
Gets the amount of time (in milliseconds) to wait for connectivity checks to re-establish after they start to fail on a live connection.
Defaults to 10,000.
- (FMLiveSwitchError*) error |
Gets the error.
- (NSString*) externalId |
Gets the external identifier.
- (FMLiveSwitchIceGatheringState) gatheringState |
Gets the ICE gathering state.
- (FMLiveSwitchFuture*) getStats |
Gets connection stats.
- (bool) hasAudio |
Gets whether this connection has an audio stream.
- (bool) hasData |
Gets whether this connection has a data stream.
- (bool) hasVideo |
Gets whether this connection has a video stream.
- (FMLiveSwitchIceConnectionState) iceConnectionState |
Gets the ICE connection state.
- (FMLiveSwitchIceGatherPolicy) iceGatherPolicy |
Gets the ICE gather policy.
- (FMLiveSwitchIceServer*) iceServer |
Gets the ICE server.
- (NSMutableArray*) iceServers |
Gets the ICE servers.
- (bool) legacyTimeout |
Gets a value indicating whether legacy Connection.Timeout should be used.
When disabled, Connection.Timeout only accounts for the time spent trying to establish connectivity (i.e. time it takes to transition from the Connecting to the Connected state; from the time point when both offer and answer had been set to the connection being fully established). When enabled, Connection.Timeout accounts for the time spent from receiving an offer (or creating an offer) to establishing connectivity (i.e. time it takes to transition from Initializing to Connected state). By default, LegacyTimeout is set to true, so that existing behavior is preserved. However, in the future default will be updated to false. This means that IL will not account for any signalling delays that may occur while establishing connectivity. This option will be later deprecated.
- (FMLiveSwitchSessionDescription*) localDescription |
Gets the local description.
- (FMLiveSwitchMediaProtocol) mediaProtocol |
Gets the media protocol in use on this connection.
- (FMLiveSwitchSessionDescription*) remoteDescription |
Gets the remote description.
- (void) removeIceServer: | (FMLiveSwitchIceServer *) | iceServer |
Removes an ICE server.
- (void) removeIceServers: | (NSMutableArray *) | iceServers |
Removes some ICE servers.
- (void) removeOnExternalIdChange: | (FMLiveSwitchAction2 *) | value |
Removes a handler that is raised when external connection Id changes.
- (void) removeOnGatheringStateChange: | (FMLiveSwitchAction1 *) | value |
Removes a handler that is raised when the gathering state changes.
- (void) removeOnIceConnectionStateChange: | (FMLiveSwitchAction1 *) | value |
Removes a handler that is raised when the Ice connection state changes.
- (void) removeOnLocalCandidate: | (FMLiveSwitchAction2 *) | value |
Removes a handler that is raised when a local candidate is added.
- (void) removeOnLocalDescription: | (FMLiveSwitchAction2 *) | value |
Removes a handler that is raised when a local description is set.
- (void) removeOnRemoteCandidate: | (FMLiveSwitchAction2 *) | value |
Removes a handler that is raised when a remote candidate is added.
- (void) removeOnRemoteDescription: | (FMLiveSwitchAction2 *) | value |
Removes a handler that is raised when a remote description is set.
- (void) removeOnSignallingStateChange: | (FMLiveSwitchAction1 *) | value |
Removes a handler that is raised when the signalling state changes.
- (void) removeOnStateChange: | (FMLiveSwitchAction1 *) | value |
Removes a handler that is raised when the connection state changes.
- (void) setBundlePolicy: | (FMLiveSwitchBundlePolicy) | value |
Sets the bundle policy for this connection.
- (void) setDeadStreamTimeout: | (int) | value |
Sets the amount of time (in milliseconds) to wait for connectivity checks to re-establish after they start to fail on a live connection.
Defaults to 10,000.
- (void) setError: | (FMLiveSwitchError *) | value |
Sets the error.
- (void) setExternalId: | (NSString *) | value |
Sets the external identifier.
- (void) setIceGatherPolicy: | (FMLiveSwitchIceGatherPolicy) | value |
Sets the ICE gather policy.
- (void) setIceServer: | (FMLiveSwitchIceServer *) | value |
Sets the ICE server.
- (void) setIceServers: | (NSMutableArray *) | value |
Sets the ICE servers.
- (void) setLegacyTimeout: | (bool) | value |
Sets a value indicating whether legacy Connection.Timeout should be used.
When disabled, Connection.Timeout only accounts for the time spent trying to establish connectivity (i.e. time it takes to transition from the Connecting to the Connected state; from the time point when both offer and answer had been set to the connection being fully established). When enabled, Connection.Timeout accounts for the time spent from receiving an offer (or creating an offer) to establishing connectivity (i.e. time it takes to transition from Initializing to Connected state). By default, LegacyTimeout is set to true, so that existing behavior is preserved. However, in the future default will be updated to false. This means that IL will not account for any signalling delays that may occur while establishing connectivity. This option will be later deprecated.
- (FMLiveSwitchFuture*) setLocalDescription: | (FMLiveSwitchSessionDescription *) | localDescription |
Sets the local description.
- (FMLiveSwitchFuture*) setRemoteDescription: | (FMLiveSwitchSessionDescription *) | remoteDescription |
Sets the remote description.
- (void) setTieBreaker: | (NSString *) | value |
Sets the tie breaker.
- (void) setTimeout: | (int) | value |
Sets the amount of time (in milliseconds) to wait for a connection to establish before giving up and closing it.
Defaults to 30,000.
- (void) setTrickleIcePolicy: | (FMLiveSwitchTrickleIcePolicy) | value |
Sets the trickle ICE policy.
- (FMLiveSwitchSignallingState) signallingState |
Gets the current signalling state.
- (FMLiveSwitchConnectionState) state |
Gets the current state.
- (NSMutableArray*) streams |
Gets the streams.
- (NSString*) tieBreaker |
Gets the tie breaker.
- (int) timeout |
Gets the amount of time (in milliseconds) to wait for a connection to establish before giving up and closing it.
Defaults to 30,000.
- (FMLiveSwitchTrickleIcePolicy) trickleIcePolicy |
Gets the trickle ICE policy.
- (id) videoStream |
Gets the first video stream.
- (NSMutableArray*) videoStreams |
Gets the video streams.