public class MediaStateChangedEvent extends MediaEvent
| Constructor and Description |
|---|
MediaStateChangedEvent(MediaObject source,
String timestamp,
List<Tag> tags,
String type,
MediaState oldState,
MediaState newState)
Indicates that the state of the media has changed
|
| 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, setSource, setTags, setTimestamppublic 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 © 2015 Kurento. All rights reserved.