RxGalleryFinal icon indicating copy to clipboard operation
RxGalleryFinal copied to clipboard

MIME type video/mp4 cannot be inserted into content://media/external/images/media; expected MIME type under image/*

Open AFAP opened this issue 4 years ago • 1 comments

视频拍摄报错:MIME type video/mp4 cannot be inserted into content://media/external/images/media; expected MIME type under image/*

target:28 手机系统Android10 修复:MediaGridFragment.java中 getContext().getContentResolver().insert(MediaStore.Images.Media.EXTERNAL_CONTENT_URI, contentValues);这边需要判断,如果是视频要存另一个地方: Uri uri; if (image) { uri = getContext().getContentResolver().insert(MediaStore.Images.Media.EXTERNAL_CONTENT_URI, contentValues); } else { uri = getContext().getContentResolver().insert(MediaStore.Video.Media.EXTERNAL_CONTENT_URI, contentValues); }

AFAP avatar Apr 11 '20 16:04 AFAP

同样的问题,只在android 10上出现,作者能否发个小版本优化

JackdawForever avatar Dec 24 '20 08:12 JackdawForever