Skip to content
This repository has been archived by the owner on Feb 8, 2022. It is now read-only.

Not support for Android 8.0+ with FileProvider #112

Open
mandanai opened this issue Nov 23, 2018 · 1 comment
Open

Not support for Android 8.0+ with FileProvider #112

mandanai opened this issue Nov 23, 2018 · 1 comment

Comments

@mandanai
Copy link

Error: E/Camera2Manager: IOException preparing MediaRecorder: /storage/....

Please support for Android 8.0 with FileProvider

@ma3s1r0
Copy link

ma3s1r0 commented Feb 15, 2019

Hello, I have similar problem. but my Exception is MediaRecorder : prepare failed
This is my solution
final CameraFragment cameraFragment = CameraFragment.newInstance(new Configuration.Builder()
.setCamera(Configuration.CAMERA_FACE_REAR).setMediaAction(Configuration.MEDIA_ACTION_VIDEO).setVideoDuration(GlobalFlagBase.VIDEO_DURATION).setMediaQuality(Configuration.MEDIA_QUALITY_LOW).build());

In my case, i solved that set media quality is low

I hope it becomes a reference. good luck

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants