After compressing the video, and trying to create thumbnail with ThumbnailUtils.createVideoThumbnail, the call fails with the following error
getEmbeddedPicture: Call to getEmbeddedPicture failed.
getFrameAtTime: videoFrame is a NULL pointer
Cannot store thumbnail: /storage/emulated/0/Android/data/com.mycopilot.copilotapp/files/Pictures/JPEG_20230316_113555_5574561444671949760.jpg
I have also noticed that when opening a media picker right after the video was compressed and stored, the videos listed are black (eg. don't have any thumbnail generated). What is the recommended solution for this?
After compressing the video, and trying to create thumbnail with
ThumbnailUtils.createVideoThumbnail
, the call fails with the following errorI have also noticed that when opening a media picker right after the video was compressed and stored, the videos listed are black (eg. don't have any thumbnail generated). What is the recommended solution for this?
Thanks