Package org.kurento.client
Class MediaFlowOutStateChangedEvent
java.lang.Object
org.kurento.client.RaiseBaseEvent
org.kurento.client.MediaEvent
org.kurento.client.MediaFlowOutStateChangedEvent
- All Implemented Interfaces:
Event
Fired when the outgoing media flow begins or ends. The event contains:
- State: whether the endpoint is sending media (FLOWING) or not (NOT_FLOWING).
- padName. The name of the pad that changed state.
- MediaType: The type of media flowing.
-
Constructor Summary
ConstructorDescriptionMediaFlowOutStateChangedEvent
(MediaObject source, String timestampMillis, List<Tag> tags, String type, MediaFlowState state, String padName, MediaType mediaType) Fired when the outgoing media flow begins or ends. -
Method Summary
Modifier and TypeMethodDescriptionGetter for the mediaType propertyGetter for the padName propertygetState()
Getter for the state propertyvoid
setMediaType
(MediaType mediaType) Setter for the mediaType propertyvoid
setPadName
(String padName) Setter for the padName propertyvoid
setState
(MediaFlowState state) Setter for the state 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
-
MediaFlowOutStateChangedEvent
public MediaFlowOutStateChangedEvent(MediaObject source, String timestampMillis, List<Tag> tags, String type, MediaFlowState state, String padName, MediaType mediaType) Fired when the outgoing media flow begins or ends. The event contains:- State: whether the endpoint is sending media (FLOWING) or not (NOT_FLOWING).
- padName. The name of the pad that changed state.
- MediaType: The type of media flowing.
- 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 raisedstate
- Current media statepadName
- Name of the pad which has mediamediaType
- Type of media that is flowing
-
-
Method Details
-
getState
Getter for the state property- Returns:
- Current media state *
-
setState
Setter for the state property- Parameters:
state
- Current media state
-
getPadName
Getter for the padName property- Returns:
- Name of the pad which has media *
-
setPadName
Setter for the padName property- Parameters:
padName
- Name of the pad which has media
-
getMediaType
Getter for the mediaType property- Returns:
- Type of media that is flowing *
-
setMediaType
Setter for the mediaType property- Parameters:
mediaType
- Type of media that is flowing
-