The app I am working on allows users to create social posts like Facebook with text, images and videos. I am working on PWA part and I came across this issue. For selecting video from storage, I need to create a thumbnail of the video to display in UI.
I was able to pick video as Uint8List
as it is supported in all the platforms but I couldn't get a thumbnail from it. I tried many libraries but all are using File
as an input.
Is there any way I can get this done?
I am using following code to get Uint8List of video File...
Library used: file_picker_cross
final filePicker = FilePickerCross(type: FileTypeCross.video);
await filePicker.pick();
final imageBytes = filePicker.toUint8List();
// TODO: get video thumbnail from [imageBytes]