createVideoTrack

fun createVideoTrack(videoParameters: VideoParameters, metadata: Metadata, captureDeviceName: String? = null): LocalVideoTrack

Creates a video track utilizing device's camera.

The client assumes that the user has already granted camera permissions.

Return

an instance of the video track

Parameters

videoParameters

a set of target parameters such as camera resolution, frame rate or simulcast configuration

metadata

the metadata that will be sent to the Membrane RTC Engine for media negotiation

captureDeviceName

the name of the device to start video capture with, you can get device name by using LocalVideoTrack.getCaptureDevices method