Class MediaSessionStartedEvent

All Implemented Interfaces:
Event

public class MediaSessionStartedEvent extends MediaEvent
Event raised when the endpoint has successfully finished the signaling stage, and is ready for establishing a connection.

This event is a simplified version of the WebRTC's RTCPeerConnection.signalingstatechange event, and can be used to verify that the endpoint has been able to finish negotiations at the signaling plane.

It contains no data, and will be raised in these scenarios:

  • A call to SdpEndpoint.processOffer() has processed a remote SDP Offer and has generated a local SDP Answer. Equivalent to WebRTC's have-local-pranswer.
  • A call to SdpEndpoint.processAnswer() has processed a remote SDP Answer. Equivalent to WebRTC's have-remote-pranswer.
  • An HttpEndpoint has received a GET or POST request.

Note that SdpEndpoint is the base class of the RTP classes, so this description applies to both RtpEndpoint and WebRtcEndpoint.

  • Constructor Details

    • MediaSessionStartedEvent

      public MediaSessionStartedEvent(MediaObject source, String timestampMillis, List<Tag> tags, String type)
      Event raised when the endpoint has successfully finished the signaling stage, and is ready for establishing a connection.

      This event is a simplified version of the WebRTC's RTCPeerConnection.signalingstatechange event, and can be used to verify that the endpoint has been able to finish negotiations at the signaling plane.

      It contains no data, and will be raised in these scenarios:

      • A call to SdpEndpoint.processOffer() has processed a remote SDP Offer and has generated a local SDP Answer. Equivalent to WebRTC's have-local-pranswer.
      • A call to SdpEndpoint.processAnswer() has processed a remote SDP Answer. Equivalent to WebRTC's have-remote-pranswer.
      • An HttpEndpoint has received a GET or POST request.

      Note that SdpEndpoint is the base class of the RTP classes, so this description applies to both RtpEndpoint and WebRtcEndpoint.

      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