generateThumbnail method
Implementation
@override
Future<String?> generateThumbnail({
required String videoPath,
int width = 100,
int height = 100,
int timeMs = 0,
}) async {
try {
final result =
await methodChannel.invokeMethod<String>('generateThumbnail', {
'videoPath': videoPath,
'width': width,
'height': height,
'timeMs': timeMs,
});
return result;
} on PlatformException catch (e) {
debugPrint('Erreur lors de la génération de la miniature: ${e.message}');
return null;
}
}