setCameraTorch abstract method

Future<int?> setCameraTorch(
  1. TorchState torchState
)

打开/关闭当前使用的摄像头(前置/后置)的闪光灯

注意:设置结果在调用 RTCVideo.stopVideoCapture 关闭内部采集后失效。

Implementation

Future<int?> setCameraTorch(TorchState torchState);