Skip to content
This repository has been archived by the owner on Jan 22, 2022. It is now read-only.

Microphone access not working #399

Closed
Flaburgan opened this issue Oct 15, 2020 · 27 comments · Fixed by ubports/trust-store#18
Closed

Microphone access not working #399

Flaburgan opened this issue Oct 15, 2020 · 27 comments · Fixed by ubports/trust-store#18
Labels
bug Something isn't working

Comments

@Flaburgan
Copy link

Flaburgan commented Oct 15, 2020

To be able to send vocal messages with Axolotl, we need to access the microphone. It looks like even with OTA-13 and the QtWebEngine upgrade, the microphone isn't working. When going to a website like https://framatalk.org/test, the access to the microphone is asked, but even after saying Yes in the UT popup to give permission, the website can't access the microphone.

Tested on a Fairphone 2 Halium 5.1 port, running the last devel build.
Same problem with my Pinephone last devel.

@Flaburgan
Copy link
Author

@Flohack74 I heard that with your 6P such feature is working, can you please try the link above and confirm?

@Flohack74
Copy link
Member

Yes it works for me, trust prompt appears, and recording seems to work as the round circle pulses when i speak.

@nanu-c
Copy link

nanu-c commented Oct 15, 2020

Broken at least on fp2, volla phone and pro 5.

@nanu-c
Copy link

nanu-c commented Oct 15, 2020

js log, tells when i request permission and allow them with grantFeaturePermission(securityOrigin, feature, true); And also happens with plain webengineview.

shm_open() failed: Permission denied

@Flohack74 Flohack74 added the bug Something isn't working label Oct 16, 2020
@rubencarneiro
Copy link
Contributor

Also wont work on volla phone and nexus 5. Neither microphone or camera access. Tried using on jitsy

@Danfro
Copy link

Danfro commented Dec 10, 2020

On my Xperia X 32 bit devel using morph I have just tested a web based video conference system senfcall.de (an instance of BigBlueButton TM):

  • watching video output from desktop -> works only one way
  • watching a shared screen from dektop -> works only one way
  • listening to speech from desktop and talking on the phone -> working both ways

I was asked if I want to give microphone permissions. Confirmed that. Yeah, works!

Also tried a jitsi.meet conference. Works too.

@Danfro
Copy link

Danfro commented Dec 19, 2020

Just tested on my E5 (devel, Qt5.12 test environment enabled).

Microphone does NOT work. Only listening to callers. So this really seems to be device dependend. Xperia X seems to be on the lucky side. ;-) We need to find out what does make the difference.

@luksus42
Copy link

Btw. microphone access works for me now in Morph on Halium9 FP3.
I can record and playback audio on this site: https://online-voice-recorder.com/

@stanwood77
Copy link

I confirm the issue.

Device: Xiaomi Redmi Note 7 Lavender
Channel: OTA-16 Stable
Used website: https://online-voice-recorder.com
Browser: Morph Browser
Microphone access: Allowed

Website replied that Microphone access has been denied. (See screenshots)

Remark: App "Music Recognition" does not start recording. luksus42/soundrecog#7

Btw, no problem with Nexus 5 + Vollaphone. Only my Redmi Note 7 is affected by this issue.

Thank you beforehand. Regards, Steve

photo_2021-04-17_22-13-07

photo2_2021-04-17_22-13-07

peat-psuwit added a commit to peat-psuwit/trust-store that referenced this issue May 14, 2021
Mir expects a PID of a process that have a Mir session. Meanwhile, the
trust-store users supply us the PID of the requesting process, which
might not be the same process. For example, QtWebEngine uses a helper
process to record the audio. In this case, Mir won't be able to find a
session and fails.

What we do here is that, when we encounter such error from Mir, get the
process's parent pid, and then try again.

Thanks @mariogrip for the idea.

Fixes: ubports/morph-browser#399
Fixes: ubports/ubuntu-touch#1668
@luksus42
Copy link

luksus42 commented Jul 7, 2021

uh, I thought we would get a fix for this soon :-(

@stanwood77
Copy link

@UniversalSuperBox Ok... So will this issue be reported in OTA-19?

@UniversalSuperBox
Copy link
Member

@stanwood77, possibly, if review of any contributions completes and works correctly for your device. I'm not sure if the linked pull request will fix your device exactly, since Ratchanan doesn't have a Redmi Note 7. But you could certainly test it out to help us test it, that will improve the likelihood that it gets merged in OTA-19.

@Flaburgan
Copy link
Author

Flaburgan commented Sep 26, 2021

Hm, I just tried and at least with the PinePhone running last devel (692) this isn't fixed. Tried on https://online-voice-recorder.com/
@mariogrip what commit is supposed to solve that issue?

@luksus42
Copy link

Trust prompt for microphone access in morph browser ( or MorphWebView) does not appear on:

  • BQ e4.5 devel (after factory reset)
  • Fairphone 2 halium-devel (after factory reset)
  • Fairphone 2 devel (after factory reset)
  • Fairphone 3 devel (Halium 10)
  • Lenovo X605 devel (Halium 9)

@Flaburgan
Copy link
Author

@luksus42 can you please provide a screenshot of "trust-prompt", because now I'm confused about what we are talking about. As said when I created that issue, I do have a prompt asking to access mic on FP2, but accepting it doesn't grant the permission.

@luksus42
Copy link

So this is the one of the browser:
browser:prompt

But we also need the one of the system, to get access to the microphone:
screenshot20211116_113424154

@Danfro
Copy link

Danfro commented Nov 16, 2021

Trust prompts are currently broken. Please see ubports/ubuntu-touch#1814.

@Flohack74
Copy link
Member

@Danfro well actually they should not be broken in RC and devel :)

@Danfro
Copy link

Danfro commented Nov 16, 2021 via email

@stekalb
Copy link

stekalb commented Nov 16, 2021

so to conclude:

  • microphone trust prompt works for most apps, e.g. recorder app
  • microphone trust prompt doesn't work for morph

@Flohack74
Copy link
Member

So I reopened this issue and moved it OTA-21... Sorry to say but this does not work at all it seems @peat-psuwit

@Flohack74 Flohack74 reopened this Nov 16, 2021
@peat-psuwit
Copy link
Contributor

Well, no wonder why it doesn't work: the build for the merge commit fails. 🤦

ภาพหน้าจอจากเมื่อ 2021-11-17 16-13-21

So, TODO: kick a retry build after OTA-20 is released.

@Flohack74
Copy link
Member

Oh thx for looking. Doh! Will do

@peat-psuwit
Copy link
Contributor

With the rebuild triggered, this issue should be fixed in devel image now.

Note for QA: for Morph Browser, there will be 2 kinds of prompts, showing below:

Morph's own prompt System's prompt
screenshot20211122_222225474 screenshot20211122_222247748

The first prompt will always appear, while the second prompt will appear the first time Morph uses the microphone. It's this second prompt which is broken, not the first one.

On Pinephone, the second prompt has always been not working, and Morph should always be allowed accessing the mic. If that's not the case, please file a separated issue.

@luksus42
Copy link

So this seems to work now. (FP3, halium 10 devel, 2021-11-21)

I have had on issue though, but I cannot reproduce it:

  • I updated the device with OTA
  • then it worked: the test-recording app which displayed the system prompt, was also able to record something
  • then I did nothing with the device for hours, I got an alarm in between
  • then I started the test-app again, which was not able to record anymore
  • the mic-rights in the systemsettings app-rights where greyed out and showd "0/0" (like camera-rights)
  • after a reboot everything worked again

@Fuseteam
Copy link

Fuseteam commented Nov 25, 2021

Appears to work, tests so far no longer complains about mic access

@lduboeuf
Copy link
Contributor

Works well on XperiaX, with that website: https://fr.mictests.com/
thanks for that fix

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.