Quand j’utilise ImagePicker.pickVideo(source: ImageSource.camera) ça fonctionne bien mais quand j’utilise ImagePicker.pickVideo(source: ImageSource.gallery) je reçois cette erreur: Unhandled Exception: MissingPluginException(No implementation found for method file on channel video_thumbnail)
getVideo() async {
final pickedFile = await ImagePicker.pickVideo(source: ImageSource.gallery);
if(pickedFile != null){
videoAddress = pickedFile.path;
final thumbnailPath = await VideoThumbnail.thumbnailFile(
video: videoAddress,
imageFormat: ImageFormat.JPEG,
quality: 75);
videoPosterAddress = thumbnailPath;
setState(() { videoPoster = File(thumbnailPath); });
}
}
Quelqu’un peut m’aider ? Merci
+0
-0