Class MediaStateChangedEvent

All Implemented Interfaces:
Event

public class MediaStateChangedEvent extends MediaEvent
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 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 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
      oldState - The previous state
      newState - The new state
  • Method Details

    • getOldState

      public MediaState getOldState()
      Getter for the oldState property
      Returns:
      The previous state *
    • setOldState

      public void setOldState(MediaState oldState)
      Setter for the oldState property
      Parameters:
      oldState - The previous state
    • getNewState

      public MediaState getNewState()
      Getter for the newState property
      Returns:
      The new state *
    • setNewState

      public void setNewState(MediaState newState)
      Setter for the newState property
      Parameters:
      newState - The new state