element-hq / element-android

A Matrix collaboration client for Android.
https://element.io/
Apache License 2.0
3.3k stars 691 forks source link

incoming voice call twitches front camera #2968

Open 532910 opened 3 years ago

532910 commented 3 years ago

Describe the bug The camera is accessed receiving the m.call.invite event.

To Reproduce Steps to reproduce the behavior:

  1. Get phone with motorized front camera, like OP7 pro for example.
  2. Make a voice call to element on this phone

Expected behavior Front camera MUST NOT move out.

Smartphone (please complete the following information):

Additional context

ouchadam commented 2 years ago

Added needs info label, not because of information in the ticket but because without a device with this hardware feature it'll be tricky for us debug and fix

We may be able to create some test builds if users with the similar devices are happy to help test

CodeCubeNeo commented 2 years ago

I think the problem is that element requires the front camera (or a sensor that controls phone brightness) to be visible. At least for me, when i cover my sensor that auto adjusts brightness on my phone during a call (with a finger for example), the whole screen goes black, and nothing works, even if i press the power button. But if i let go of the finger, making the sensor see light (or whatever), the screen turns on again. Any help would be well apreaciated!

onurays commented 2 years ago

Couldn't reproduce on Xioami device with the motorized front camera. @CodeCubeNeo could you confirm if this is fixed?

CodeCubeNeo commented 2 years ago

I was writing this in relation to this issue: https://github.com/vector-im/element-android/issues/5431. I just thought that might have something to do with that.