MediaTrackFactory
Factory interface for creating audio and video media tracks.
This interface abstracts the platform-specific details of creating media tracks, allowing clients to request audio and video tracks without dealing with platform differences.
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
abstract suspend fun createVideoTrack(constraints: WebRtcMedia.VideoTrackConstraints): WebRtcMedia.VideoTrack
open suspend fun createVideoTrack(constraints: WebRtcMedia.VideoTrackConstraints.() -> Unit = {}): WebRtcMedia.VideoTrack