getVideoThumbnail method

  1. @override
Future<Uint8List?> getVideoThumbnail(
  1. String videoId, {
  2. int width = 128,
  3. int height = 128,
})
override

Get a thumbnail for a video

Implementation

@override
Future<Uint8List?> getVideoThumbnail(
  String videoId, {
  int width = 128,
  int height = 128,
}) async {
  final Uint8List? result = await methodChannel.invokeMethod(
    'getVideoThumbnail',
    {'videoId': videoId, 'width': width, 'height': height},
  );
  return result;
}