WebRtcConnectionEvents

Interface providing access to various events and state changes in a WebRTC peer connection.

This interface allows observing connection states, ICE candidates, and other events through Kotlin Flows, enabling reactive programming with WebRTC connections.

Inheritors

Properties

Link copied to clipboard
abstract val dataChannelEvents: SharedFlow<DataChannelEvent>

Flow of newly added connection dataChannels, as a result of the remote peer calling WebRtcPeerConnection.createDataChannel.

Link copied to clipboard
abstract val iceCandidates: SharedFlow<WebRtc.IceCandidate>

Flow of ICE candidates generated by this peer connection.

Link copied to clipboard

Flow of ICE connection state changes.

Link copied to clipboard

Flow of ICE gathering state changes.

Link copied to clipboard
abstract val negotiationNeeded: SharedFlow<Unit>

Sets a callback to be invoked when negotiation (offer-answer exchange, etc.) is needed for this connection.

Link copied to clipboard
abstract val signalingState: StateFlow<WebRtc.SignalingState>

Flow of signaling state changes.

Link copied to clipboard
abstract val state: StateFlow<WebRtc.ConnectionState>

Flow of connection state changes.

Link copied to clipboard
abstract val stats: StateFlow<List<WebRtc.Stats>>

Flow of connection statistics.

Link copied to clipboard
abstract val trackEvents: SharedFlow<TrackEvent>

Flow of events on a media track (e.g., add, remove).