startCameraCapture

Starts camera capture.

public abstract int startCameraCapture(
      Constants.VideoSourceType sourceType, CameraCapturerConfiguration config);

Details

Since
v4.2.0

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 Android devices, you can capture video from up to 4 cameras, provided the device has multiple cameras or supports external cameras.
config

The configuration of the video capture. See CameraCapturerConfiguration.

Returns

  • 0: Success.
  • < 0: Failure.