WebRtc

object WebRtc(source)

An object containing WebRtc protocol entities and abstractions. Provides the core types and interfaces needed for WebRtc peer-to-peer communication.

See also

Types

Link copied to clipboard

Represents the bundle policy for media negotiation.

Link copied to clipboard

Represents the state of the peer connection.

Link copied to clipboard

Abstract class representing a network channel which can be used for bidirectional peer-to-peer transfers of arbitrary data. Every data channel is associated with an WebRtcPeerConnection.

Link copied to clipboard

Represents the degradation preference for media quality when bandwidth is constrained.

Link copied to clipboard
interface DtmfSender

Interface for sending DTMF (Dual-Tone Multi-Frequency) tones.

Link copied to clipboard
@Serializable
data class IceCandidate(val candidate: String, val sdpMid: String, val sdpMLineIndex: Int)

Represents an ICE candidate in the WebRtc connection process.

Link copied to clipboard

Represents the state of the ICE connection.

Link copied to clipboard
class IceException(message: String?, cause: Throwable? = null) : RuntimeException

This exception indicates problems with ICE candidates gathering, processing, or connectivity during the WebRTC peer connection establishment.

Link copied to clipboard

Represents the state of the ICE gathering process.

Link copied to clipboard
data class IceServer(val urls: String, val username: String? = null, val credential: String? = null)

Represents an ICE server configuration for WebRtc connections.

Link copied to clipboard

Represents the ICE candidate policy for the connection.

Link copied to clipboard

Represents the RTCP mux policy for the connection.

Link copied to clipboard
data class RtpHeaderExtensionParameters(val id: Int, val uri: String, val encrypted: Boolean)

Represents parameters for RTP header extensions.

Link copied to clipboard
interface RtpParameters

Interface representing parameters for RTP transmission.

Link copied to clipboard
interface RtpSender

Interface for sending RTP media.

Link copied to clipboard
class SdpException(message: String?, cause: Throwable? = null) : RuntimeException

This exception indicates problems with creating, parsing, or validating SDP descriptions during the WebRTC connection establishment process.

Link copied to clipboard
@Serializable
data class SessionDescription(val type: WebRtc.SessionDescriptionType, val sdp: String)

Represents a session description in the WebRtc connection process.

Link copied to clipboard

Represents the type of session description in the WebRtc connection process.

Link copied to clipboard

Represents the signaling state of the peer connection.

Link copied to clipboard
data class Stats(val id: String, val type: String, val timestamp: Long, val props: Map<String, Any?>)

Represents statistics about the WebRtc connection.