public class MediaStateChangedEvent extends MediaEvent
Constructor and Description |
---|
MediaStateChangedEvent(MediaObject source,
String timestamp,
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, setType
getSource, getTags, getTimestamp, setSource, setTags, setTimestamp
public MediaStateChangedEvent(MediaObject source, String timestamp, List<Tag> tags, String type, MediaState oldState, MediaState newState)
source
- Object that raised the eventtimestamp
- 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 © 2018 Kurento. All rights reserved.