switchCameraWithPosition abstract method

Future<int> switchCameraWithPosition(
  1. int position
)

指定前置/后置摄像头。

该方法需要在相机启动后调用,例如调用 NERtcEngine.startVideoPreviewNERtcEngine.joinChannel 后。

position 相机类型。详细信息请参考 NERtcCameraPosition。该参数为必填参数,若未赋值,SDK 会报错。

Implementation

Future<int> switchCameraWithPosition(int position);