Skip to main content

Starting March 27, 2026, RC is rebranded as Nexconn. Existing RC SDK customers can continue using this documentation. New customers should refer to the Nexconn developer documentation.

Camera Settings

Configure Default Camera

Before initiating or answering a call, use setVideoConfig to set the default camera. The default configuration is RCCallCamera.front.

  • Sample code:

    RCCallVideoConfig videoConfig = RCCallVideoConfig.create(
    /// Enable rear camera by default
    defaultCamera: RCCallCamera.back,
    );
    /// Configure video parameters
    engine?.setVideoConfig(videoConfig);

Enable/Disable Camera

After the call is established (RCCallEngine.onConnect), camera operations will trigger the RCCallEngine.onRemoteUserDidChangeCameraState callback on the remote end.

  • Sample code:

    /// Disable camera
    engine?.enableCamera(false);

Switch Between Front/Rear Cameras

After the call is established (RCCallEngine.onConnect), use switchCamera() to toggle between front and rear cameras. This won't affect default camera settings.

Note

  • The startCall method enables front camera by default.
  • Sample code:

    engine?.switchCamera();