public class ConnectionStateChangedEvent extends MediaEvent
Constructor and Description |
---|
ConnectionStateChangedEvent(MediaObject source,
String timestamp,
String timestampMillis,
List<Tag> tags,
String type,
ConnectionState oldState,
ConnectionState newState)
This event is raised when the connection between two peers changes.
|
Modifier and Type | Method and Description |
---|---|
ConnectionState |
getNewState()
Getter for the newState property
|
ConnectionState |
getOldState()
Getter for the oldState property
|
void |
setNewState(ConnectionState newState)
Setter for the newState property
|
void |
setOldState(ConnectionState oldState)
Setter for the oldState property
|
getType, setType
getSource, getTags, getTimestamp, getTimestampMillis, setSource, setTags, setTimestamp, setTimestampMillis
public ConnectionStateChangedEvent(MediaObject source, String timestamp, String timestampMillis, List<Tag> tags, String type, ConnectionState oldState, ConnectionState newState)
source
- Object that raised the eventtimestamp
- [DEPRECATED: Use timestampMillis] The timestamp associated with this object: Seconds elapsed since the UNIX Epoch (Jan 1, 1970, UTC).timestampMillis
- The timestamp associated with this event: Milliseconds elapsed since the UNIX Epoch (Jan 1, 1970, UTC).tags
- type
- Type of event that was raisedoldState
- The previous statenewState
- The new statepublic ConnectionState getOldState()
public void setOldState(ConnectionState oldState)
oldState
- The previous statepublic ConnectionState getNewState()
public void setNewState(ConnectionState newState)
newState
- The new stateCopyright © 2022 Kurento. All rights reserved.