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
public class MediaFlowOutStateChangedEvent extends MediaEvent
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
Constructors Constructor Description 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.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MediaType
getMediaType()
Getter for the mediaType propertyString
getPadName()
Getter for the padName propertyMediaFlowState
getState()
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 property-
Methods inherited from class org.kurento.client.MediaEvent
getType, setType
-
Methods inherited from class org.kurento.client.RaiseBaseEvent
getSource, getTags, getTimestampMillis, setSource, setTags, setTimestampMillis
-
-
-
-
Constructor Detail
-
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 Detail
-
getState
public MediaFlowState getState()
Getter for the state property- Returns:
- Current media state *
-
setState
public void setState(MediaFlowState state)
Setter for the state property- Parameters:
state
- Current media state
-
getPadName
public String getPadName()
Getter for the padName property- Returns:
- Name of the pad which has media *
-
setPadName
public void setPadName(String padName)
Setter for the padName property- Parameters:
padName
- Name of the pad which has media
-
getMediaType
public MediaType getMediaType()
Getter for the mediaType property- Returns:
- Type of media that is flowing *
-
setMediaType
public void setMediaType(MediaType mediaType)
Setter for the mediaType property- Parameters:
mediaType
- Type of media that is flowing
-
-