JsWebRtcEngine

class JsWebRtcEngine(config: JsWebRtcEngineConfig, mediaTrackFactory: MediaTrackFactory = config.mediaTrackFactory ?: NavigatorMediaDevices) : WebRtcEngineBase, MediaTrackFactory(source)

Constructors

Link copied to clipboard
constructor(config: JsWebRtcEngineConfig, mediaTrackFactory: MediaTrackFactory = config.mediaTrackFactory ?: NavigatorMediaDevices)

Properties

Link copied to clipboard
open override val config: WebRtcConfig

Functions

Link copied to clipboard
open override fun close()
Link copied to clipboard
Link copied to clipboard

Creates a new peer connection with the configured settings.

open suspend fun createPeerConnection(config: WebRtcConnectionConfig.() -> Unit = this.config.defaultConnectionConfig): WebRtcPeerConnection

Creates a new peer connection with the configured settings. If no configuration is provided, the default configuration from WebRtcConfig.defaultConnectionConfig will be used.

Link copied to clipboard