Stream base properties/methods. More...
Public Member Functions | |
void | addOnDirectionChange (fm.liveswitch.IAction0 value) |
Adds a handler that is raised when the stream direction changes. More... | |
void | addOnStateChange (fm.liveswitch.IAction0 value) |
Adds a handler that is raised when the connection state changes. More... | |
abstract fm.liveswitch.Error | changeDirection (fm.liveswitch.StreamDirection newDirection) |
Changes this stream's direction. More... | |
String | getConnectionId () |
Gets the connection identifier. More... | |
abstract fm.liveswitch.StreamDirection | getDirection () |
Gets the current direction. More... | |
String | getExternalId () |
Gets the external identifier. More... | |
String | getId () |
Gets the identifier. More... | |
boolean | getIsTerminated () |
Gets a value indicating whether the stream is currently closed or failed. More... | |
boolean | getIsTerminating () |
Gets a value indicating whether the stream is currently closing or failing. More... | |
boolean | getIsTerminatingOrTerminated () |
Gets a value indicating whether the stream is currently closing, failing, closed, or failed. More... | |
abstract String | getLabel () |
Gets a label that identifies this class. More... | |
abstract fm.liveswitch.StreamDirection | getLocalDirection () |
Gets current direction indicated by the local description. More... | |
boolean | getLocalReceive () |
Gets a value indicating whether the local peer supports receiving media on this stream. More... | |
boolean | getLocalSend () |
Gets a value indicating whether the local peer on this stream supports sending media on this stream. More... | |
String | getMediaDescriptionId () |
Gets the media description ID of this stream. More... | |
abstract fm.liveswitch.StreamDirection | getRemoteDirection () |
Gets current direction indicated by the remote description. More... | |
boolean | getRemoteReceive () |
Gets a value indicating whether receiving media is supported by the remote peer on this stream. More... | |
boolean | getRemoteSend () |
Gets a value indicating whether sending media is supported by the remote peer on this stream. More... | |
fm.liveswitch.StreamState | getState () |
Gets the state of the stream. More... | |
String | getTag () |
Gets optional data to associate with this instance. More... | |
abstract fm.liveswitch.TransportInfo | getTransportInfo () |
Gets the stream transport info. More... | |
fm.liveswitch.StreamType | getType () |
Gets the type. More... | |
boolean | getUseWssForMedia () |
Gets a value indicating whether W. More... | |
void | removeOnDirectionChange (fm.liveswitch.IAction0 value) |
Removes a handler that is raised when the stream direction changes. More... | |
void | removeOnStateChange (fm.liveswitch.IAction0 value) |
Removes a handler that is raised when the connection state changes. More... | |
void | setExternalId (String value) |
Sets the external identifier. More... | |
abstract void | setLocalDirection (fm.liveswitch.StreamDirection value) |
Sets current direction indicated by the local description. More... | |
void | setLocalReceive (boolean value) |
Sets a value indicating whether the local peer supports receiving media on this stream. More... | |
void | setLocalSend (boolean value) |
Sets a value indicating whether the local peer on this stream supports sending media on this stream. More... | |
void | setTag (String value) |
Sets optional data to associate with this instance. More... | |
void | setUseWssForMedia (boolean value) |
Sets a value indicating whether W. More... | |
StreamBase (fm.liveswitch.StreamType type) | |
Initializes a new instance of the fm.liveswitch.StreamBase class. More... | |
String | toString () |
Returns a string that represents this instance. More... | |
Public Member Functions inherited from fm.liveswitch.Dynamic | |
java.util.HashMap< String, Object > | getDynamicProperties () |
Gets all dynamic properties on this instance. More... | |
Object | getDynamicValue (String key) |
Gets a property value from the local cache. More... | |
void | setDynamicValue (String key, Object value) |
Sets a property value in the local cache. More... | |
boolean | unsetDynamicValue (String key) |
Removes a property value from the local cache. More... | |
Protected Member Functions | |
long | getConnectedTimestamp () |
Gets the ManagedStopwatch.GetTimestamp() value representing the ticks that passed when this stream's connection state changed to connected. More... | |
fm.liveswitch.LogContext | getLogContext () |
Gets the log context for this connection. More... | |
void | processStateChange () |
Processes a state change. More... | |
void | processStateLockChange () |
Processes a state lock change. More... | |
void | processUpdateToMediaStreamIdentification (String oldValue) |
Process update to the MediaDescription Identificiation. More... | |
Protected Member Functions inherited from fm.liveswitch.Dynamic | |
Dynamic () | |
Protected Member Functions inherited from fm.liveswitch.Serializable | |
boolean | getIsDirty () |
Gets a value indicating whether this instance is dirty. More... | |
Serializable () | |
Initializes a new instance of the fm.liveswitch.Serializable class. More... | |
void | setIsDirty (boolean value) |
Sets a value indicating whether this instance is dirty. More... | |
Stream base properties/methods.
fm.liveswitch.StreamBase.StreamBase | ( | fm.liveswitch.StreamType | type | ) |
Initializes a new instance of the fm.liveswitch.StreamBase class.
type | The type. |
void fm.liveswitch.StreamBase.addOnDirectionChange | ( | fm.liveswitch.IAction0 | 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.
Implements fm.liveswitch.IStream.
void fm.liveswitch.StreamBase.addOnStateChange | ( | fm.liveswitch.IAction0 | 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.
Implements fm.liveswitch.IStream.
|
abstract |
Changes this stream's direction.
Implements fm.liveswitch.IStream.
Reimplemented in fm.liveswitch.MediaStreamBase.
|
protected |
Gets the ManagedStopwatch.GetTimestamp() value representing the ticks that passed when this stream's connection state changed to connected.
String fm.liveswitch.StreamBase.getConnectionId | ( | ) |
Gets the connection identifier.
|
abstract |
Gets the current direction.
Implements fm.liveswitch.IStream.
Reimplemented in fm.liveswitch.MediaStreamBase.
String fm.liveswitch.StreamBase.getExternalId | ( | ) |
Gets the external identifier.
Implements fm.liveswitch.IStream.
String fm.liveswitch.StreamBase.getId | ( | ) |
Gets the identifier.
Implements fm.liveswitch.IStream.
boolean fm.liveswitch.StreamBase.getIsTerminated | ( | ) |
Gets a value indicating whether the stream is currently closed or failed.
boolean fm.liveswitch.StreamBase.getIsTerminating | ( | ) |
Gets a value indicating whether the stream is currently closing or failing.
boolean fm.liveswitch.StreamBase.getIsTerminatingOrTerminated | ( | ) |
Gets a value indicating whether the stream is currently closing, failing, closed, or failed.
|
abstract |
Gets a label that identifies this class.
Implements fm.liveswitch.IStream.
Reimplemented in fm.liveswitch.MediaStreamBase.
|
abstract |
Gets current direction indicated by the local description.
Implements fm.liveswitch.IStream.
Reimplemented in fm.liveswitch.MediaStreamBase.
boolean fm.liveswitch.StreamBase.getLocalReceive | ( | ) |
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.
Implements fm.liveswitch.IStream.
boolean fm.liveswitch.StreamBase.getLocalSend | ( | ) |
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.
Implements fm.liveswitch.IStream.
|
protected |
Gets the log context for this connection.
String fm.liveswitch.StreamBase.getMediaDescriptionId | ( | ) |
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.
Implements fm.liveswitch.IStream.
|
abstract |
Gets current direction indicated by the remote description.
Implements fm.liveswitch.IStream.
Reimplemented in fm.liveswitch.MediaStreamBase.
boolean fm.liveswitch.StreamBase.getRemoteReceive | ( | ) |
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.
Implements fm.liveswitch.IStream.
boolean fm.liveswitch.StreamBase.getRemoteSend | ( | ) |
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.
Implements fm.liveswitch.IStream.
fm.liveswitch.StreamState fm.liveswitch.StreamBase.getState | ( | ) |
Gets the state of the stream.
Implements fm.liveswitch.IStream.
String fm.liveswitch.StreamBase.getTag | ( | ) |
Gets optional data to associate with this instance.
Implements fm.liveswitch.IStream.
|
abstract |
Gets the stream transport info.
Implements fm.liveswitch.IStream.
Reimplemented in fm.liveswitch.DataStream.
fm.liveswitch.StreamType fm.liveswitch.StreamBase.getType | ( | ) |
Gets the type.
Implements fm.liveswitch.IStream.
boolean fm.liveswitch.StreamBase.getUseWssForMedia | ( | ) |
Gets a value indicating whether W.
|
protected |
Processes a state change.
|
protected |
Processes a state lock change.
|
protected |
Process update to the MediaDescription Identificiation.
void fm.liveswitch.StreamBase.removeOnDirectionChange | ( | fm.liveswitch.IAction0 | 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.
Implements fm.liveswitch.IStream.
void fm.liveswitch.StreamBase.removeOnStateChange | ( | fm.liveswitch.IAction0 | 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.
Implements fm.liveswitch.IStream.
void fm.liveswitch.StreamBase.setExternalId | ( | String | value | ) |
Sets the external identifier.
Implements fm.liveswitch.IStream.
|
abstract |
Sets current direction indicated by the local description.
Implements fm.liveswitch.IStream.
Reimplemented in fm.liveswitch.MediaStreamBase.
void fm.liveswitch.StreamBase.setLocalReceive | ( | boolean | 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.
Implements fm.liveswitch.IStream.
void fm.liveswitch.StreamBase.setLocalSend | ( | boolean | 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.
Implements fm.liveswitch.IStream.
void fm.liveswitch.StreamBase.setTag | ( | String | value | ) |
Sets optional data to associate with this instance.
Implements fm.liveswitch.IStream.
void fm.liveswitch.StreamBase.setUseWssForMedia | ( | boolean | value | ) |
Sets a value indicating whether W.
String fm.liveswitch.StreamBase.toString | ( | ) |
Returns a string that represents this instance.