video_thumbnail icon indicating copy to clipboard operation
video_thumbnail copied to clipboard

Get the video thumbnail exception on ios

Open bhjSky opened this issue 4 years ago • 3 comments

Gets the image as null on thumbnailFile. The thumbnailFile method does not set the thumbnailPath parameter. path is nsnull,Is not null

bhjSky avatar Aug 06 '20 00:08 bhjSky

Thanks for the patch. @bhjSky Why don't check the thumbnailPath parameter at the first place?

justsoft avatar Oct 13 '20 10:10 justsoft

many ios developers have the same problem.

thumbnailFile String [video], String [thumbnailPath](folder or full path where to store the thumbnail file, null to save to same folder as the video file), ImageFormat imageFormat, int [maxHeight](0: for the original resolution of the video, or scaled by the source aspect ratio), int [maxWidth](0: for the original resolution of the video, or scaled by the source aspect ratio), int [timeMs] generates the thumbnail from the frame around the specified millisecond, int quality creates a file of the thumbnail from the [video

when set this thumbnailPath as default, it will cause crash.

scofield-hello avatar Dec 15 '20 02:12 scofield-hello

Leave the thumbnailPathl as null means the generated thumbnail image into the folder as what the thmbnailFile is. You have to make sure the folder has the write permissions for this App.

justsoft avatar Dec 16 '20 15:12 justsoft