getLocalVideo method

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

Responds with your local video. The return object will contain the flag indicating if video is on and textureId for its rendering or -1

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));
}