enable Webcam
This method can be used to enable the local participant's webcam.
Events:
onStreamEnabled— emitted on all participants when the video stream is enabled
Code Example:
meeting.enableWebcam()
Content copied to clipboard
This method can be used to enable the local participant's webcam using a custom video track.
Events:
onStreamEnabled— emitted on all participants when the video stream is enabled
Code Example:
val videoTrack = VideoSDK.createCameraVideoTrack(
"h720p_w1280p", // encoder config (resolution)
"front", // facing mode
CustomStreamTrack.VideoMode.MOTION, // optimization mode
true, // multi-stream (simulcast)
context, // Android context
null, // video device (default camera)
3, // max simulcast layers
BitrateMode.BALANCED // bitrate mode
)
meeting.enableWebcam(videoTrack)
Content copied to clipboard
Parameters
custom Track
the CustomStreamTrack to use as the video source