fishwjy / MultiType-FilePicker

This is a light Android file picker library.
Apache License 2.0
1.4k stars 248 forks source link

ChooseVideo #9

Closed ydBen closed 6 years ago

ydBen commented 7 years ago

When choosing videopicker and use camera to choose video,when choose "right" check causing crash problem,hope to get the solution soon

lizihanglove commented 7 years ago

I also get the same problem,and it's hurts me a lot ,is there anyone can get the problem resolved! thanks!!

xxwn446 commented 7 years ago

I found when i choose the video,causing crash problemThe reason is that the bitmap is null ,I modify the getVideoThumb() of the FileLoaderCallbacks ,I change "bitmap = retriever.getFrameAtTime(TimeUnit.MILLISECONDS.toMicros(1));" to "bitmap = ThumbnailUtils.createVideoThumbnail(filePath, MediaStore.Images.Thumbnails.MINI_KIND)" ,I don't know if it happened by accident. The problem has been solved...

fishwjy commented 6 years ago

@ydBen @lizihanglove @xxwn446 Please try version 1.0.5. And tell me the result whether this exception exist any more?

xxwn446 commented 6 years ago

I tried,and the problem has been solved.@fishwjy

fishwjy commented 6 years ago

OK, thanks! I'll close this issue.