WebRtcEngineBase
abstract class WebRtcEngineBase(engineName: String, configuration: WebRtcConfig) : WebRtcEngine(source)
Base implementation of the WebRtcEngine interface.
Provides common functionality for WebRtc engine implementations.
Parameters
engineName
Name identifier for the engine, used in coroutine naming.
Inheritors
Functions
Link copied to clipboard
abstract suspend fun createAudioTrack(constraints: WebRtcMedia.AudioTrackConstraints): WebRtcMedia.AudioTrack
open suspend fun createAudioTrack(constraints: WebRtcMedia.AudioTrackConstraints.() -> Unit = {}): WebRtcMedia.AudioTrack
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
abstract suspend fun createVideoTrack(constraints: WebRtcMedia.VideoTrackConstraints): WebRtcMedia.VideoTrack
open suspend fun createVideoTrack(constraints: WebRtcMedia.VideoTrackConstraints.() -> Unit = {}): WebRtcMedia.VideoTrack