When i leave app with opening camera and after some time i open app again the camera gives black screen and it gives an error :
Camera.onError(session/camera-has-been-disconnected): [session/camera-has-been-disconnected] The given Camera device (id: 1) has been disconnected! Error: CAMERA_IS_DISABLED_BY_ANDROID [session/camera-has-been-disconnected: [session/camera-has-been-disconnected] The given Camera device (id: 1) has been disconnected! Error: CAMERA_IS_DISABLED_BY_ANDROID]
** ERROR Camera.onError(unknown/unknown): [unknown/unknown] CameraDevice was already closed [unknown/unknown: [unknown/unknown] CameraDevice was already closed]**
Suggest me how can i resolve this issue ??
I like that when I open this app, I open the camera along with it and after some time, if I open the app, then I open the camera and I can capture the image., for now it gives black screen with error i provided you Please suggest me .
I will using react-native-vision camera
Khushwant sharma is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
1