switchCamera method

  1. @override
Future<int?> switchCamera(
  1. bool isFrontCamera
)
override

Switch front or rear camera

@deprecated Deprecated from v2.1.0, it is recommended to use {@link switchCamera} in TUIRoomDeviceManager instead。

Implementation

@override
Future<int?> switchCamera(bool isFrontCamera) async {
  Completer<int?> completer = Completer();
  getMediaDeviceManager().switchCamera(isFrontCamera);
  completer.complete(0);
  return completer.future;
}