We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
No matter how many 'position' parameters are passed in, the acquired image will not change.
IOS|Android
Future _getVideoImage(bool isHeader) async { await FlutterVideoCompress().getThumbnailWithFile( widget.videoPath, position: isHeader ? 0 : widget.videoLongTime ?? 60000000 // default(-1) ).then((value) { setState(() { print(value.path); widget.imagePath = value.path; isVideoHeader = isHeader ? true : false; }, ); }); }
flutter: /private/var/mobile/Containers/Data/Application/09678862-FB0B-428D-910E-7DB718538AF4/tmp/flutter_video_compress/trim.1566DF16-FA8E-4429-AD06-3BABFFE3461A.jpg flutter: /private/var/mobile/Containers/Data/Application/09678862-FB0B-428D-910E-7DB718538AF4/tmp/flutter_video_compress/trim.1566DF16-FA8E-4429-AD06-3BABFFE3461A.jpg flutter: /private/var/mobile/Containers/Data/Application/09678862-FB0B-428D-910E-7DB718538AF4/tmp/flutter_video_compress/trim.1566DF16-FA8E-4429-AD06-3BABFFE3461A.jpg flutter: /private/var/mobile/Containers/Data/Application/09678862-FB0B-428D-910E-7DB718538AF4/tmp/flutter_video_compress/trim.1566DF16-FA8E-4429-AD06-3BABFFE3461A.jpg
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Description
No matter how many 'position' parameters are passed in, the acquired image will not change.
Platform
IOS|Android
Code Example (if has)
Future _getVideoImage(bool isHeader) async {
await FlutterVideoCompress().getThumbnailWithFile(
widget.videoPath,
position: isHeader ? 0 : widget.videoLongTime ?? 60000000 // default(-1)
).then((value) {
setState(() {
print(value.path);
widget.imagePath = value.path;
isVideoHeader = isHeader ? true : false;
},
);
});
}
Expected solution
flutter: /private/var/mobile/Containers/Data/Application/09678862-FB0B-428D-910E-7DB718538AF4/tmp/flutter_video_compress/trim.1566DF16-FA8E-4429-AD06-3BABFFE3461A.jpg
flutter: /private/var/mobile/Containers/Data/Application/09678862-FB0B-428D-910E-7DB718538AF4/tmp/flutter_video_compress/trim.1566DF16-FA8E-4429-AD06-3BABFFE3461A.jpg
flutter: /private/var/mobile/Containers/Data/Application/09678862-FB0B-428D-910E-7DB718538AF4/tmp/flutter_video_compress/trim.1566DF16-FA8E-4429-AD06-3BABFFE3461A.jpg
flutter: /private/var/mobile/Containers/Data/Application/09678862-FB0B-428D-910E-7DB718538AF4/tmp/flutter_video_compress/trim.1566DF16-FA8E-4429-AD06-3BABFFE3461A.jpg
The text was updated successfully, but these errors were encountered: