getLocalVideo method

Future<Either<ScreenMeetError, LocalVideo>> getLocalVideo()

Implementation

Future<Either<ScreenMeetError, LocalVideo>> getLocalVideo() async {
  final Map result = await channel.invokeMethod(pm.kGetLocalVideoCommand);
  if (pm.isSuccess(result)) { return Right(pm.localVideo(result));}
  return Left(pm.error(result));
}