Observer

interface Observer

Java version of PeerConnectionObserver.

Functions

Link copied to clipboard
abstract fun onAddStream(stream: MediaStream)
Triggered when media is received on a new stream from remote peer.
Link copied to clipboard
open fun onAddTrack(receiver: RtpReceiver, mediaStreams: Array<MediaStream>)
Triggered when a new track is signaled by the remote peer, as a result of setRemoteDescription.
Link copied to clipboard
Triggered when the PeerConnectionState changes.
Link copied to clipboard
abstract fun onDataChannel(dataChannel: DataChannel)
Triggered when a remote peer opens a DataChannel.
Link copied to clipboard
abstract fun onIceCandidate(candidate: IceCandidate)
Triggered when a new ICE candidate has been found.
Link copied to clipboard
Triggered when gathering of an ICE candidate failed.
Link copied to clipboard
abstract fun onIceCandidatesRemoved(candidates: Array<IceCandidate>)
Triggered when some ICE candidates have been removed.
Link copied to clipboard
Triggered when the IceConnectionState changes.
Link copied to clipboard
abstract fun onIceConnectionReceivingChange(receiving: Boolean)
Triggered when the ICE connection receiving status changes.
Link copied to clipboard
Triggered when the IceGatheringState changes.
Link copied to clipboard
abstract fun onRemoveStream(stream: MediaStream)
Triggered when a remote peer close a stream.
Link copied to clipboard
open fun onRemoveTrack(receiver: RtpReceiver)
Triggered when a previously added remote track is removed by the remote peer, as a result of setRemoteDescription.
Link copied to clipboard
abstract fun onRenegotiationNeeded()
Triggered when renegotiation is necessary.
Link copied to clipboard
Triggered when the ICE candidate pair is changed.
Link copied to clipboard
Triggered when the SignalingState changes.
Link copied to clipboard
open fun onTrack(transceiver: RtpTransceiver)
Triggered when the signaling from SetRemoteDescription indicates that a transceiver will be receiving media from a remote endpoint.