startCameraCapture

Starts camera capture.

abstract startCameraCapture(
    sourceType: VideoSourceType,
    config: CameraCapturerConfiguration
  ): number;

Details

You can call this method to start capturing video from one or more cameras by specifying sourceType.

Parameters

sourceType

The type of the video source. See VideoSourceType.

Note:
  • On the desktop platforms, you can capture video from up to 4 cameras.
config

The configuration of the video capture. See CameraCapturerConfiguration.

Returns

  • 0: Success.
  • < 0: Failure.