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

I'm having issues switching cameras on some devices. #2878

Open
YamatoRyou opened this issue Dec 6, 2024 · 3 comments
Open

I'm having issues switching cameras on some devices. #2878

YamatoRyou opened this issue Dec 6, 2024 · 3 comments
Labels
T-Defect Something isn't working: bugs, crashes, hangs, vulnerabilities, or other reported problems

Comments

@YamatoRyou
Copy link

YamatoRyou commented Dec 6, 2024

Steps to reproduce

  1. Start an Element Call video call in Element X or in your browser;
  2. Quickly switch from the button at the bottom, or switch cameras from Element Call's settings.

Outcome

What did you expect?

n/a

What happened instead?

Attempts to switch cameras failed, and it seemed to the other party¹ that I was stuck at the last moment before switching (but from my perspective, it was fine).
Switching back to the original camera did not solve the problem, and I had to restart the call. Since Element Call currently does not remember my camera or microphone selection in Element X (from my observation, it always uses the front camera), this means that Element Call on this device can never use the rear camera.

This problem only occurs on a specific device, and it can be reproduced on that device whether Element Call is running on Element X or in a browser.
I have 3 devices, test results:
OnePlus MT2110 (Pixel OS, based on Android 14): Successfully reproduced the problem
Mi 9T (MIUI 12.5, based on Android 11): OK
Nokia TA-1054 (based on Andorid 8.1): OK


¹ Refers to Element Desktop, version 1.11.87, running on x64 Windows 11 (10.0.22631)

My Element Call instance cannot submit debug logs, please provide a way to save the logs locally.

Operating system

Pixel OS (Android 14)

Browser information

Chromium 124 / Element X Android 0.7.5

URL for webapp

Element Call 0.7.1 (self-hosted)

Will you send logs?

No

@YamatoRyou YamatoRyou added the T-Defect Something isn't working: bugs, crashes, hangs, vulnerabilities, or other reported problems label Dec 6, 2024
@robintown
Copy link
Member

@YamatoRyou Could you please try switching video inputs on this WebRTC test page, and let us know the results? https://webrtc.github.io/samples/src/content/devices/input-output/

If this is a general issue with acquiring media streams from the web browser on this device, as I suspect, I don't believe there's much we can do.

@YamatoRyou
Copy link
Author

@YamatoRyou Could you please try switching video inputs on this WebRTC test page, and let us know the results? https://webrtc.github.io/samples/src/content/devices/input-output/

If this is a general issue with acquiring media streams from the web browser on this device, as I suspect, I don't believe there's much we can do.

As of now, I visited the address you provided with the default browser on the device that can reproduce the problem, and the camera can be switched normally. Of course, this is still my perspective. Because the webpage does not provide the ability to view my camera from the other party's perspective. After completing the above test, I returned to Element Call in Element X to repeat the test, and the problem still exists. Please note that this problem can only be reproduced from the other party's perspective.
Pixel OS is a third-party ROM, so this may be the problem of the ROM?

@YamatoRyou
Copy link
Author

Update:
I just found a way to use the rear camera on this device:

  1. Enter Element Call (the camera is disabled at this time);
  2. Switch to the rear camera in the settings of Element Call;
  3. Exit settings and enable the camera in the button at the bottom of the screen (this step may not be necessary, you can also enable the camera first and then perform step 2).

Although the rear camera can be used at this time, if the button at the bottom of the screen is used to switch the camera, the problem reappears, but this time from the other party's perspective, I am stuck at the last moment before switching from the rear camera to the front camera. However, from the EC settings, you can switch cameras at will without getting stuck. All in all on this device, I can only switch cameras through the EC settings instead of the buttons at the bottom of the screen.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
T-Defect Something isn't working: bugs, crashes, hangs, vulnerabilities, or other reported problems
Projects
None yet
Development

No branches or pull requests

2 participants