Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Camera is not working in Android #528

Closed
NAVEENCHVSPOP opened this issue Jul 13, 2021 · 1 comment
Closed

Camera is not working in Android #528

NAVEENCHVSPOP opened this issue Jul 13, 2021 · 1 comment

Comments

@NAVEENCHVSPOP
Copy link

Bug Report

Current behavior
When we switch front and back cameras in previous session then it is working fine but in the next session camera is not working in Android.

Steps to reproduce
Start session
Turn video on
Flip camera
End session
Start new session
Turn on video(Now video is going blank)
Try to flip the camera(Now video is going blank)

What is the current bug behavior?
Camera Manager in Android is going to infinite loop, when trying to switch on the camera.

What is the expected correct behavior?
Able to see the camera.

Relevant logs and/or screenshots
com.opentok.android.Camera2VideoCapturer$Camera2Exception: CAMERA_IN_USE (4): Camera already in use
at com.opentok.android.Camera2VideoCapturer.initCamera(Unknown:101)
at com.opentok.android.Camera2VideoCapturer.a(Unknown:12)
at com.opentok.android.Camera2VideoCapturer.e(Unknown)
at com.opentok.android.b.run(Unknown:4)
at com.opentok.android.Camera2VideoCapturer$4.onClosed(Unknown:44)
at android.hardware.camera2.impl.CameraDeviceImpl$5.run(CameraDeviceImpl.java:213)
at android.os.Handler.handleCallback(Handler.java:873)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:193)
at com.facebook.react.bridge.queue.MessageQueueThreadImpl$4.run(MessageQueueThreadImpl.java:8)
at java.lang.Thread.run(Thread.java:764)

@enricop89
Copy link
Contributor

Duplicate #386

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

No branches or pull requests

2 participants