screenshot method

Future<Uint8List?> screenshot()

Implementation

Future<Uint8List?> screenshot() async {
  final int? id = _playerId;
  if (id == null) return null;
  try {
    return await UMediaChannel.call<Uint8List>(id, "screenshot");
  } on PlatformException {
    return null;
  } on MissingPluginException {
    return null;
  }
}