create Video Track
Creates a video track, recording video through the supplied capturer.
This method will call VideoCapturer.initialize and handle the lifecycle of SurfaceTextureHelper.
Parameters
The name of the track.
The capturer to use for this track.
The capture options to use for this track, or Room.videoTrackCaptureDefaults if none is passed.
A video processor to attach to this track that can modify the frames before publishing.
Creates a video track, recording video through the camera with the given options.
Note: If using this in conjunction with setCameraEnabled, ensure that your created camera track is published first before using setCameraEnabled. Otherwise, the LiveKit SDK will attempt to create its own camera track to manage, and will cause issues since generally only one camera session can be active at a time.
Parameters
The name of the track
The capture options to use for this track, or Room.videoTrackCaptureDefaults if none is passed.
A video processor to attach to this track that can modify the frames before publishing.
Throws
will be thrown if Manifest.permission.CAMERA permission is missing.