Package tvi.webrtc

Interface PeerConnection.Observer

Enclosing class:

public static interface PeerConnection.Observer
Java version of PeerConnectionObserver.
  • Method Details

    • onSignalingChange

      void onSignalingChange(PeerConnection.SignalingState newState)
      Triggered when the SignalingState changes.
    • onIceConnectionChange

      void onIceConnectionChange(PeerConnection.IceConnectionState newState)
      Triggered when the IceConnectionState changes.
    • onStandardizedIceConnectionChange

      default void onStandardizedIceConnectionChange(PeerConnection.IceConnectionState newState)
    • onConnectionChange

      default void onConnectionChange(PeerConnection.PeerConnectionState newState)
      Triggered when the PeerConnectionState changes.
    • onIceConnectionReceivingChange

      void onIceConnectionReceivingChange(boolean receiving)
      Triggered when the ICE connection receiving status changes.
    • onIceGatheringChange

      void onIceGatheringChange(PeerConnection.IceGatheringState newState)
      Triggered when the IceGatheringState changes.
    • onIceCandidate

      void onIceCandidate(IceCandidate candidate)
      Triggered when a new ICE candidate has been found.
    • onIceCandidateError

      default void onIceCandidateError(IceCandidateErrorEvent event)
      Triggered when gathering of an ICE candidate failed.
    • onIceCandidatesRemoved

      void onIceCandidatesRemoved(IceCandidate[] candidates)
      Triggered when some ICE candidates have been removed.
    • onSelectedCandidatePairChanged

      default void onSelectedCandidatePairChanged(CandidatePairChangeEvent event)
      Triggered when the ICE candidate pair is changed.
    • onAddStream

      void onAddStream(MediaStream stream)
      Triggered when media is received on a new stream from remote peer.
    • onRemoveStream

      void onRemoveStream(MediaStream stream)
      Triggered when a remote peer close a stream.
    • onDataChannel

      void onDataChannel(DataChannel dataChannel)
      Triggered when a remote peer opens a DataChannel.
    • onRenegotiationNeeded

      void onRenegotiationNeeded()
      Triggered when renegotiation is necessary.
    • onAddTrack

      default void onAddTrack(RtpReceiver receiver, MediaStream[] mediaStreams)
      Triggered when a new track is signaled by the remote peer, as a result of setRemoteDescription.
    • onRemoveTrack

      default void onRemoveTrack(RtpReceiver receiver)
      Triggered when a previously added remote track is removed by the remote peer, as a result of setRemoteDescription.
    • onTrack

      default void onTrack(RtpTransceiver transceiver)
      Triggered when the signaling from SetRemoteDescription indicates that a transceiver will be receiving media from a remote endpoint. This is only called if UNIFIED_PLAN semantics are specified. The transceiver will be disposed automatically.