shareVideo method

Future<Either<ScreenMeetError, bool>> shareVideo(
  1. String cameraType
)

Start sharing video from your camera

For now cameraType can be either front or back. See CameraType

Implementation

Future<Either<ScreenMeetError, bool>> shareVideo(String cameraType) async {
  _keepOnTakingScreenShots = false;
  final Map result = await _channel.invokeMethod(_pm.kShareVideoCommand, {_pm.kShareVideoCameraType: cameraType});

  if (_pm.isSuccess(result)) { return Right(true);}
  return Left(_pm.error(result));
}