IosMediaDevices
class IosMediaDevices(videoCapturerFactory: VideoCapturerFactory = defaultVideoCapturerFactory()) : MediaTrackFactory(source)
iOS-specific implementation of MediaTrackFactory for WebRTC media operations.
This class provides iOS-native WebRTC media track creation capabilities using the WebRTC framework. It manages peer connection factory initialization, SSL setup, and platform-specific media track creation.
Lifecycle
SSL initialization happens lazily when the first peer connection factory is accessed
Video capturers are automatically started when video tracks are created
Parameters
videoCapturerFactory
Factory for creating video capturer instances. Defaults to platform-specific implementation
Functions
Link copied to clipboard
open suspend fun createAudioTrack(constraints: WebRtcMedia.AudioTrackConstraints.() -> Unit = {}): WebRtcMedia.AudioTrack
open suspend override fun createAudioTrack(constraints: WebRtcMedia.AudioTrackConstraints): WebRtcMedia.AudioTrack
Link copied to clipboard
open suspend fun createVideoTrack(constraints: WebRtcMedia.VideoTrackConstraints.() -> Unit = {}): WebRtcMedia.VideoTrack
open suspend override fun createVideoTrack(constraints: WebRtcMedia.VideoTrackConstraints): WebRtcMedia.VideoTrack