IosWebRtcEngine
class IosWebRtcEngine(val config: IosWebRtcEngineConfig, mediaTrackFactory: MediaTrackFactory = config.mediaTrackFactory ?: IosMediaDevices()) : WebRtcEngineBase, MediaTrackFactory(source)
iOS-specific WebRTC engine implementation that handles peer connection creation and management.
This engine provides iOS-specific WebRTC functionality by wrapping the native iOS WebRTC framework and implementing the common WebRTC engine interface.
Parameters
config
The iOS-specific WebRTC engine configuration
mediaTrackFactory
Factory for creating media tracks, defaults to IosMediaDevices if not specified in config
Constructors
Link copied to clipboard
constructor(config: IosWebRtcEngineConfig, mediaTrackFactory: MediaTrackFactory = config.mediaTrackFactory ?: IosMediaDevices())
Functions
Link copied to clipboard
open suspend override fun createAudioTrack(constraints: WebRtcMedia.AudioTrackConstraints): WebRtcMedia.AudioTrack
open suspend override fun createAudioTrack(constraints: WebRtcMedia.AudioTrackConstraints.() -> Unit): WebRtcMedia.AudioTrack
Link copied to clipboard
open suspend override fun createPeerConnection(config: WebRtcConnectionConfig): WebRtcPeerConnection
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
open suspend override fun createVideoTrack(constraints: WebRtcMedia.VideoTrackConstraints): WebRtcMedia.VideoTrack
open suspend override fun createVideoTrack(constraints: WebRtcMedia.VideoTrackConstraints.() -> Unit): WebRtcMedia.VideoTrack