Stream base properties/methods. More...
Instance Methods | |
(void) | - addOnDirectionChange: |
Adds a handler that is raised when the stream direction changes. More... | |
(void) | - addOnStateChange: |
Adds a handler that is raised when the connection state changes. More... | |
(FMLiveSwitchError *) | - changeDirectionWithNewDirection: |
Changes this stream's direction. More... | |
(long long) | - connectedTimestamp |
Gets the ManagedStopwatch.GetTimestamp() value representing the ticks that passed when this stream's connection state changed to connected. More... | |
(NSString *) | - connectionId |
Gets the connection identifier. More... | |
(NSString *) | - description |
Returns a string that represents this instance. More... | |
(FMLiveSwitchStreamDirection) | - direction |
Gets the current direction. More... | |
(NSString *) | - externalId |
Gets the external identifier. More... | |
(NSString *) | - id |
Gets the identifier. More... | |
(instancetype) | - initWithType: |
Initializes a new instance of the FMLiveSwitchStreamBase class. More... | |
(bool) | - isTerminated |
Gets a value indicating whether the stream is currently closed or failed. More... | |
(bool) | - isTerminating |
Gets a value indicating whether the stream is currently closing or failing. More... | |
(bool) | - isTerminatingOrTerminated |
Gets a value indicating whether the stream is currently closing, failing, closed, or failed. More... | |
(NSString *) | - label |
Gets a label that identifies this class. More... | |
(FMLiveSwitchStreamDirection) | - localDirection |
Gets current direction indicated by the local description. More... | |
(bool) | - localReceive |
Gets a value indicating whether the local peer supports receiving media on this stream. More... | |
(bool) | - localSend |
Gets a value indicating whether the local peer on this stream supports sending media on this stream. More... | |
(NSString *) | - mediaDescriptionId |
Gets the media description ID of this stream. More... | |
(void) | - processStateChange |
Processes a state change. More... | |
(void) | - processStateLockChange |
Processes a state lock change. More... | |
(FMLiveSwitchStreamDirection) | - remoteDirection |
Gets current direction indicated by the remote description. More... | |
(bool) | - remoteReceive |
Gets a value indicating whether receiving media is supported by the remote peer on this stream. More... | |
(bool) | - remoteSend |
Gets a value indicating whether sending media is supported by the remote peer on this stream. More... | |
(void) | - removeOnDirectionChange: |
Removes a handler that is raised when the stream direction changes. More... | |
(void) | - removeOnStateChange: |
Removes a handler that is raised when the connection state changes. More... | |
(void) | - setExternalId: |
Sets the external identifier. More... | |
(void) | - setLocalDirection: |
Sets current direction indicated by the local description. More... | |
(void) | - setLocalReceive: |
Sets a value indicating whether the local peer supports receiving media on this stream. More... | |
(void) | - setLocalSend: |
Sets a value indicating whether the local peer on this stream supports sending media on this stream. More... | |
(void) | - setTag: |
Sets optional data to associate with this instance. More... | |
(void) | - setUseWssForMedia: |
Sets a value indicating whether W. More... | |
(FMLiveSwitchStreamState) | - state |
Gets the state of the stream. More... | |
(NSString *) | - tag |
Gets optional data to associate with this instance. More... | |
(FMLiveSwitchTransportInfo *) | - transportInfo |
Gets the stream transport info. More... | |
(FMLiveSwitchStreamType) | - type |
Gets the type. More... | |
(bool) | - useWssForMedia |
Gets a value indicating whether W. More... | |
Instance Methods inherited from FMLiveSwitchDynamic | |
(NSMutableDictionary< NSString *, id > *) | - dynamicProperties |
Gets all dynamic properties on this instance. More... | |
(id) | - getDynamicValueWithKey: |
Gets a property value from the local cache. More... | |
(instancetype) | - init |
Initializes a new instance of the FMLiveSwitchSerializable class. More... | |
(void) | - setDynamicValueWithKey:value: |
Sets a property value in the local cache. More... | |
(bool) | - unsetDynamicValueWithKey: |
Removes a property value from the local cache. More... | |
Class Methods | |
(FMLiveSwitchStreamBase *) | + streamBaseWithType: |
Initializes a new instance of the FMLiveSwitchStreamBase class. More... | |
Class Methods inherited from FMLiveSwitchDynamic | |
(FMLiveSwitchDynamic *) | + dynamic |
Class Methods inherited from FMLiveSwitchSerializable | |
(FMLiveSwitchSerializable *) | + serializable |
Initializes a new instance of the FMLiveSwitchSerializable class. More... | |
Stream base properties/methods.
- (void) addOnDirectionChange: | (FMLiveSwitchAction0 *) | value |
Adds a handler that is raised when the stream direction changes.
Stream direction indicates the direction of media flow. For example:
The direction of a stream can change over its lifecycle. For example:
An event handler bound to the change in direction can be used to update the UI accordingly so the user is aware of the change in the state of the application.
Reimplemented from <FMLiveSwitchIStream>.
- (void) addOnStateChange: | (FMLiveSwitchAction0 *) | value |
Adds a handler that is raised when the connection state changes.
This method can track the state of the connection and can be used to display the current status of the connection to the user, add or remove media views in the UI, and handle retry logic if the connection fails.
Reimplemented from <FMLiveSwitchIStream>.
- (FMLiveSwitchError*) changeDirectionWithNewDirection: | (FMLiveSwitchStreamDirection) | newDirection |
Changes this stream's direction.
Reimplemented from <FMLiveSwitchIStream>.
Implemented in FMLiveSwitchMediaStreamBase.
- (long long) connectedTimestamp |
Gets the ManagedStopwatch.GetTimestamp() value representing the ticks that passed when this stream's connection state changed to connected.
- (NSString*) connectionId |
Gets the connection identifier.
- (NSString*) description |
Returns a string that represents this instance.
- (FMLiveSwitchStreamDirection) direction |
Gets the current direction.
Reimplemented from <FMLiveSwitchIStream>.
Implemented in FMLiveSwitchMediaStreamBase.
- (NSString*) externalId |
Gets the external identifier.
Reimplemented from <FMLiveSwitchIStream>.
Gets the identifier.
Reimplemented from <FMLiveSwitchIStream>.
- (instancetype) initWithType: | (FMLiveSwitchStreamType) | type |
Initializes a new instance of the FMLiveSwitchStreamBase class.
type | The type. |
Implemented in FMLiveSwitchStream, and FMLiveSwitchMediaStreamBase.
- (bool) isTerminated |
Gets a value indicating whether the stream is currently closed or failed.
- (bool) isTerminating |
Gets a value indicating whether the stream is currently closing or failing.
- (bool) isTerminatingOrTerminated |
Gets a value indicating whether the stream is currently closing, failing, closed, or failed.
- (NSString*) label |
Gets a label that identifies this class.
Reimplemented from <FMLiveSwitchIStream>.
Implemented in FMLiveSwitchMediaStreamBase.
- (FMLiveSwitchStreamDirection) localDirection |
Gets current direction indicated by the local description.
Reimplemented from <FMLiveSwitchIStream>.
Implemented in FMLiveSwitchMediaStreamBase.
- (bool) localReceive |
Gets a value indicating whether the local peer supports receiving media on this stream.
Use this method to determine if a stream is used for sending media or only receiving media.
Reimplemented from <FMLiveSwitchIStream>.
- (bool) localSend |
Gets a value indicating whether the local peer on this stream supports sending media on this stream.
Use this property to determine if a stream is used for sending media or only receiving media.
Reimplemented from <FMLiveSwitchIStream>.
- (NSString*) mediaDescriptionId |
Gets the media description ID of this stream.
The media description ID is only available once a connection is opened with this stream, because it is obtained from the local SDP description of this stream.
Reimplemented from <FMLiveSwitchIStream>.
- (void) processStateChange |
Processes a state change.
- (void) processStateLockChange |
Processes a state lock change.
- (FMLiveSwitchStreamDirection) remoteDirection |
Gets current direction indicated by the remote description.
Reimplemented from <FMLiveSwitchIStream>.
Implemented in FMLiveSwitchMediaStreamBase.
- (bool) remoteReceive |
Gets a value indicating whether receiving media is supported by the remote peer on this stream.
Returns false if the remote stream direction has not been received.
Reimplemented from <FMLiveSwitchIStream>.
- (bool) remoteSend |
Gets a value indicating whether sending media is supported by the remote peer on this stream.
Returns false if the remote stream direction has not been received.
Reimplemented from <FMLiveSwitchIStream>.
- (void) removeOnDirectionChange: | (FMLiveSwitchAction0 *) | value |
Removes a handler that is raised when the stream direction changes.
Stream direction indicates the direction of media flow. For example:
The direction of a stream can change over its lifecycle. For example:
An event handler bound to the change in direction can be used to update the UI accordingly so the user is aware of the change in the state of the application.
Reimplemented from <FMLiveSwitchIStream>.
- (void) removeOnStateChange: | (FMLiveSwitchAction0 *) | value |
Removes a handler that is raised when the connection state changes.
This method can track the state of the connection and can be used to display the current status of the connection to the user, add or remove media views in the UI, and handle retry logic if the connection fails.
Reimplemented from <FMLiveSwitchIStream>.
- (void) setExternalId: | (NSString *) | value |
Sets the external identifier.
Reimplemented from <FMLiveSwitchIStream>.
- (void) setLocalDirection: | (FMLiveSwitchStreamDirection) | value |
Sets current direction indicated by the local description.
Reimplemented from <FMLiveSwitchIStream>.
Implemented in FMLiveSwitchMediaStreamBase.
- (void) setLocalReceive: | (bool) | value |
Sets a value indicating whether the local peer supports receiving media on this stream.
Use this method to determine if a stream is used for sending media or only receiving media.
Reimplemented from <FMLiveSwitchIStream>.
- (void) setLocalSend: | (bool) | value |
Sets a value indicating whether the local peer on this stream supports sending media on this stream.
Use this property to determine if a stream is used for sending media or only receiving media.
Reimplemented from <FMLiveSwitchIStream>.
- (void) setTag: | (NSString *) | value |
Sets optional data to associate with this instance.
Reimplemented from <FMLiveSwitchIStream>.
- (void) setUseWssForMedia: | (bool) | value |
Sets a value indicating whether W.
- (FMLiveSwitchStreamState) state |
Gets the state of the stream.
Reimplemented from <FMLiveSwitchIStream>.
+ (FMLiveSwitchStreamBase*) streamBaseWithType: | (FMLiveSwitchStreamType) | type |
Initializes a new instance of the FMLiveSwitchStreamBase class.
type | The type. |
- (NSString*) tag |
Gets optional data to associate with this instance.
Reimplemented from <FMLiveSwitchIStream>.
- (FMLiveSwitchTransportInfo*) transportInfo |
Gets the stream transport info.
Reimplemented from <FMLiveSwitchIStream>.
- (FMLiveSwitchStreamType) type |
Gets the type.
Reimplemented from <FMLiveSwitchIStream>.
- (bool) useWssForMedia |
Gets a value indicating whether W.