PeerConnectionObserver

open class PeerConnectionObserver : PeerConnection.Observer

Class that represents and implements the WEBRTC events including ICE, Track, Stream an Signal change events.

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
open override fun onAddStream(p0: MediaStream?)

Called when a new media stream has been added to the connection.

Link copied to clipboard
open override fun onAddTrack(p0: RtpReceiver?, p1: Array<out MediaStream>?)

Called when a new track has been added to the connection.

Link copied to clipboard
open fun onConnectionChange(p0: PeerConnection.PeerConnectionState)
Link copied to clipboard
open override fun onDataChannel(p0: DataChannel?)

Called when a new data channel has been created on the connection.

Link copied to clipboard
open override fun onIceCandidate(p0: IceCandidate?)

Called when a new ICE candidate has been generated.

Link copied to clipboard
open fun onIceCandidateError(p0: IceCandidateErrorEvent)
Link copied to clipboard
open override fun onIceCandidatesRemoved(p0: Array<out IceCandidate>?)

Called when ICE candidates have been removed.

Link copied to clipboard
open override fun onIceConnectionChange(p0: PeerConnection.IceConnectionState?)

Called when the ICE connection state changes.

Link copied to clipboard

Called when the ICE connection receiving state changes.

Link copied to clipboard
open override fun onIceGatheringChange(p0: PeerConnection.IceGatheringState?)

Called when the ICE gathering state changes.

Link copied to clipboard
open override fun onRemoveStream(p0: MediaStream?)

Called when a media stream has been removed from the connection.

Link copied to clipboard
open fun onRemoveTrack(p0: RtpReceiver)
Link copied to clipboard
open override fun onRenegotiationNeeded()

Called when the connection needs to be renegotiated. This can happen when media streams or data channels are added or removed.

Link copied to clipboard
open fun onSelectedCandidatePairChanged(p0: CandidatePairChangeEvent)
Link copied to clipboard
open override fun onSignalingChange(p0: PeerConnection.SignalingState?)

Called when the signaling state of the PeerConnection changes.

Link copied to clipboard
open fun onStandardizedIceConnectionChange(p0: PeerConnection.IceConnectionState)
Link copied to clipboard
open fun onTrack(p0: RtpTransceiver)