whichCamera method
ZH
获取当前使用摄像头位置 @return 0: 成功, 非0: 失败
EN
Get current camera position @return 0: success, non-zero: failure
Implementation
Future<RCRTCCamera> whichCamera() async {
int code = await _channel.invokeMethod('whichCamera') ?? -1;
if (code != 0) return RCRTCCamera.none;
return RCRTCCamera.values[code + 1];
}