Skip to content
New issue

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

[Bug] 'Position' in the method getThumbnailWithFile seems to be invalid #101

Open
haoyuanwu opened this issue Dec 25, 2020 · 0 comments
Open
Labels
bug Something isn't working

Comments

@haoyuanwu
Copy link

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

@haoyuanwu haoyuanwu added the bug Something isn't working label Dec 25, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant