#501 Unable to switch camera in a video call

Open
opened 1 month ago by nuron · 0 comments
nuron commented 1 month ago

General information

  • Version: 2.5.2
  • Device: OnePlus 6T
  • Android Version: LineageOS 17.1
  • Server name: self hosted
  • Server software: ejabberd 20.07
  • Pix-Art Messenger source: Codeberg

Steps to reproduce

  1. Start a video call
  2. press the button for switching the camera

Expected result

Camera changes to main camera (which of them? OP6T is having two)

Actual result

There is a Toas Message with the information ‘could not switch camera’ and after this there is absolutely no video signal send to the other person. Pressing the camera switch button again does not help. Looks like end the call and start it again is the only way to fix it.

Debug output

D/Pix-Art_Messenger( 6292): could not switch camera
D/Pix-Art_Messenger( 6292): java.lang.IllegalStateException: Unable to switch camera Failed to create capture session. android.hardware.camera2.CameraAccessException: CAMERA_ERROR (3): endConfigure:500: Camera 2: Error configuring streams: Function not implemented (-38)
D/Pix-Art_Messenger( 6292):  at eu.siacs.conversations.xmpp.jingle.WebRTCWrapper$3.onCameraSwitchError(WebRTCWrapper.java:354)
D/Pix-Art_Messenger( 6292):  at org.webrtc.CameraCapturer$1.onFailure(CameraCapturer.java:83)
D/Pix-Art_Messenger( 6292):  at org.webrtc.Camera2Session.reportError(Camera2Session.java:401)
D/Pix-Art_Messenger( 6292):  at org.webrtc.Camera2Session.access$600(Camera2Session.java:33)
D/Pix-Art_Messenger( 6292):  at org.webrtc.Camera2Session$CameraStateCallback.onOpened(Camera2Session.java:128)
D/Pix-Art_Messenger( 6292):  at android.hardware.camera2.impl.CameraDeviceImpl$1.run(CameraDeviceImpl.java:145)
D/Pix-Art_Messenger( 6292):  at android.os.Handler.handleCallback(Handler.java:883)
D/Pix-Art_Messenger( 6292):  at android.os.Handler.dispatchMessage(Handler.java:100)
D/Pix-Art_Messenger( 6292):  at android.os.Looper.loop(Looper.java:214)
D/Pix-Art_Messenger( 6292):  at android.os.HandlerThread.run(HandlerThread.java:67)
#### General information * **Version:** 2.5.2 * **Device:** OnePlus 6T * **Android Version:** LineageOS 17.1 * **Server name:** self hosted * **Server software:** ejabberd 20.07 * **Pix-Art Messenger source:** Codeberg #### Steps to reproduce 1. Start a video call 2. press the button for switching the camera #### Expected result Camera changes to main camera (which of them? OP6T is having two) #### Actual result There is a Toas Message with the information 'could not switch camera' and after this there is absolutely no video signal send to the other person. Pressing the camera switch button again does not help. Looks like end the call and start it again is the only way to fix it. #### Debug output ``` D/Pix-Art_Messenger( 6292): could not switch camera D/Pix-Art_Messenger( 6292): java.lang.IllegalStateException: Unable to switch camera Failed to create capture session. android.hardware.camera2.CameraAccessException: CAMERA_ERROR (3): endConfigure:500: Camera 2: Error configuring streams: Function not implemented (-38) D/Pix-Art_Messenger( 6292): at eu.siacs.conversations.xmpp.jingle.WebRTCWrapper$3.onCameraSwitchError(WebRTCWrapper.java:354) D/Pix-Art_Messenger( 6292): at org.webrtc.CameraCapturer$1.onFailure(CameraCapturer.java:83) D/Pix-Art_Messenger( 6292): at org.webrtc.Camera2Session.reportError(Camera2Session.java:401) D/Pix-Art_Messenger( 6292): at org.webrtc.Camera2Session.access$600(Camera2Session.java:33) D/Pix-Art_Messenger( 6292): at org.webrtc.Camera2Session$CameraStateCallback.onOpened(Camera2Session.java:128) D/Pix-Art_Messenger( 6292): at android.hardware.camera2.impl.CameraDeviceImpl$1.run(CameraDeviceImpl.java:145) D/Pix-Art_Messenger( 6292): at android.os.Handler.handleCallback(Handler.java:883) D/Pix-Art_Messenger( 6292): at android.os.Handler.dispatchMessage(Handler.java:100) D/Pix-Art_Messenger( 6292): at android.os.Looper.loop(Looper.java:214) D/Pix-Art_Messenger( 6292): at android.os.HandlerThread.run(HandlerThread.java:67) ```
Sign in to join this conversation.
No Milestone
No Assignees
1 Participants
Notifications
Due Date

No due date set.

Dependencies

This issue currently doesn't have any dependencies.

Loading…
There is no content yet.