CameraView icon indicating copy to clipboard operation
CameraView copied to clipboard

When DeviceEncoders fails, return CameraException instead of crashing

Open kiran4228 opened this issue 5 years ago • 5 comments

java.lang.RuntimeException: No encoders for type:video/avc at com.otaliastudios.cameraview.f.b.a(SourceFile:15) at com.otaliastudios.cameraview.f.b.(SourceFile:4) at com.otaliastudios.cameraview.l.h.a(SourceFile:27) at com.otaliastudios.cameraview.j.j$a.onDrawFrame(SourceFile:18) at android.opengl.GLSurfaceView$GLThread.guardedRun(GLSurfaceView.java:1575) at android.opengl.GLSurfaceView$GLThread.run(GLSurfaceView.java:1271)

kiran4228 avatar Jan 08 '20 10:01 kiran4228

Latest version should fix this as much as possible! However I'll keep this issue to change the behavior from crash to a controlled CameraException.

natario1 avatar Jan 10 '20 22:01 natario1

When it will resolve. I am unable use. Kindly help

kiran4228 avatar Jan 11 '20 06:01 kiran4228

behavior

Update came but not resolved. Kindly help. It's urgent

kiran4228 avatar Jan 18 '20 17:01 kiran4228

@natario1 I will try to solve this issue if it is ok with you. Does the issue also need exception handling, or should I just return a CameraException?

Landi29 avatar Jan 09 '21 19:01 Landi29

It seems that tryConfigureVideo() and tryConfigureAudio() in DeviceEncoders.java both throw the corresponding exceptions, so I don't see the problem.

Landi29 avatar Jan 09 '21 20:01 Landi29