Closed VocsyAniket closed 1 month ago
is there any solution for this?
I have the same issue
this issue video file from get thumbnail image (this video file path is phone local storage path)
solution below :
/// get thumbnail in file video path
String image = await getVideoThumbImage(videoPath); /// your videoPath from phone local storage
getVideoThumbImage(videoPathUrl) async {
try {
String tempPath = (await getApplicationDocumentsDirectory()).path;
String? image = await VideoThumbnail.thumbnailFile(
video: videoPathUrl,
thumbnailPath: tempPath,
imageFormat: ImageFormat.JPEG,
quality: 75,
);
return image ?? 'ERROR';
} catch (e, t) {
print('VideoThumbnail File Error ----- ${e}');
print('VideoThumbnail File Trace ----- ${t}');
return 'ERROR';
}
}
/// show thumbnail image
Container(
decoration: BoxDecoration(
image: DecorationImage(image: FileImage(File(image), fit: BoxFit.cover)),
),
is there any solution for this?
i have already send solution, check this below part
I have the same issue
i have already send solution, check this below part
I'm get video from phone local storage, after get thumbnail file image.
How to Solve this Issue ???