WebRtcClient
fun <T : WebRtcConfig> WebRtcClient(factory: WebRtcClientEngineFactory<T>, block: T.() -> Unit = {}): WebRtcClient(source)
Creates a WebRtcClient with a specified engine.
val client = WebRtcClient(JsWebRtc) {
defaultConnectionConfig = {
iceServers = listOf(WebRtc.IceServer("stun:stun.l.google.com:19302"))
statsRefreshRate = 100.milliseconds
}
}
Content copied to clipboard
Closing the client
client.close()
Content copied to clipboard
Parameters
block
configuration block for the client