Class 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 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 event
        timestampMillis - The timestamp associated with this event: Milliseconds elapsed since the UNIX Epoch (Jan 1, 1970, UTC).
        tags -
        type - Type of event that was raised
        state - Current media state
        padName - Name of the pad which has media
        mediaType - 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