Package org.kurento.client
Class MediaStateChangedEvent
java.lang.Object
org.kurento.client.RaiseBaseEvent
org.kurento.client.MediaEvent
org.kurento.client.MediaStateChangedEvent
- All Implemented Interfaces:
Event
This event is fired when the media connection between two peers changes, based on the RTCP packet flow. It contains the old and the new state. Possible values are
- CONNECTED
- DISCONNECTED
-
Constructor Summary
ConstructorDescriptionMediaStateChangedEvent
(MediaObject source, 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. -
Method Summary
Modifier and TypeMethodDescriptionGetter for the newState propertyGetter for the oldState propertyvoid
setNewState
(MediaState newState) Setter for the newState propertyvoid
setOldState
(MediaState oldState) Setter for the oldState propertyMethods inherited from class org.kurento.client.MediaEvent
getType, setType
Methods inherited from class org.kurento.client.RaiseBaseEvent
getSource, getTags, getTimestampMillis, setSource, setTags, setTimestampMillis
-
Constructor Details
-
MediaStateChangedEvent
public MediaStateChangedEvent(MediaObject source, 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. It contains the old and the new state. Possible values are- CONNECTED
- DISCONNECTED
- Parameters:
source
- Object that raised the eventtimestampMillis
- 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 state
-
-
Method Details
-
getOldState
Getter for the oldState property- Returns:
- The previous state *
-
setOldState
Setter for the oldState property- Parameters:
oldState
- The previous state
-
getNewState
Getter for the newState property- Returns:
- The new state *
-
setNewState
Setter for the newState property- Parameters:
newState
- The new state
-