public class MediaStateChangedEvent extends MediaEvent
| Constructor and Description |
|---|
MediaStateChangedEvent(MediaObject source,
String timestamp,
String timestampMillis,
List<Tag> tags,
String type,
MediaState oldState,
MediaState newState)
This event is fired when the media connection between two peers changes, based on the RTCP packet flow.
|
| Modifier and Type | Method and Description |
|---|---|
MediaState |
getNewState()
Getter for the newState property
|
MediaState |
getOldState()
Getter for the oldState property
|
void |
setNewState(MediaState newState)
Setter for the newState property
|
void |
setOldState(MediaState oldState)
Setter for the oldState property
|
getType, setTypegetSource, getTags, getTimestamp, getTimestampMillis, setSource, setTags, setTimestamp, setTimestampMillispublic MediaStateChangedEvent(MediaObject source, String timestamp, String timestampMillis, List<Tag> tags, String type, MediaState oldState, MediaState 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 MediaState getOldState()
public void setOldState(MediaState oldState)
oldState - The previous statepublic MediaState getNewState()
public void setNewState(MediaState newState)
newState - The new stateCopyright © 2022 Kurento. All rights reserved.