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

Allowing media (microphone) permission per site won't "stick" (WebRTC issue?) #412

Closed
TRSx80 opened this issue May 18, 2018 · 8 comments
Closed
Labels

Comments

@TRSx80
Copy link

TRSx80 commented May 18, 2018

Greetings! Awesome work you have done here! You have allowed me to now consider using Chromium where I never would have before.

I was trying to do some free-form speech to text conversion (dictation), my understanding is Chrome(ium) plug-ins are best for this. And your awesome project brought this into my realm of possibility, without needing to give up privacy! But I seem to have hit a snag along the way...

I installed the latest pre-built Debian version (ungoogled-chromium_66.0.3359.139-1.stretch_amd64) with all other needed components (common, driver, shell, widevine) using gdebi. Then I figured out how to get plug-ins installed from the Chrome Webstore, following your instructions and the create a search provider method. I am on Debian unstable btw, also amd64.

I then installed 2 different speech to text plug-ins (VoiceNote II and Online Speech Recognition) but could not get either to work, with roughly the same problem, namely: When I go to use these, a media permission icon appears in the right side of the URL bar. I click on this and allow the site access to my microphone. However it does not keep the setting, and I cannot get it to work.

I started thinking this might be due to something u-c is blocking, so some searches for "u-c microphone" & etc. led me to #221 which in turn led me to #179.

Well then I started looking at WebRTC stuff in settings. I searched chrome://flags for anything to do with "rtc" and enabled all of the following, to no avail:

  • Negotiation with GCM cipher suites for SRTP in WebRTC
  • Negotiation with encrypted header extensions for SRTP in WebRTC
  • WebRTC Stun origin header

I also tried testing via https://test.webrtc.org/ with same steps (allow media/mic permission for site, which didn't "stick") and therefore that didn't work either.

Only other plug-ins I have installed so far are Dark Reader and uBlock Origin, the latter I thought might also be blocking something maybe. Note I have not checked the setting in uBO about "Prevent WebRTC from leaking local IP addresses". Also, I turned uBO completely off and still couldn't get the mic/WebRTC to work.

Only other thing is, I am using a VPN. But that shouldn't make a difference, should it? Not sure I am willing to get on the internet at all without VPN and so hope that's not the problem. I don't think it's an "extension based" VPN (read something somewhere about that) as I am connecting using the OpenVPN client in Debian.

So with that, I'm out of ideas at the moment, so I thought I would go ahead and post my predicament to marinate while I go on and get caught up on homework. :) Any thoughts would be appreciated.

@Eloston
Copy link
Member

Eloston commented May 18, 2018

Do you have any entries for the site(s) in question in chrome://settings/content/microphone and/or chrome://settings/content/camera?

@TRSx80
Copy link
Author

TRSx80 commented May 18, 2018

Wow! Thanks for quick reply!

Yes under chrome://settings/content/microphone it looks like this:

Microphone

G533 Wireless Headset Dongle
Ask before accessing (recommended) [toggle ON]

Block
No Sites Added

Allow
https://voicenotebook.com:443
https://voicenote.in:443
https://test.webrtc.org:443

@Eloston
Copy link
Member

Eloston commented May 18, 2018

Do you have the same problem with the Portable Linux build?

@TRSx80
Copy link
Author

TRSx80 commented May 18, 2018

Just tried that. It took me a few minutes to remove old version, install (extract, really) the portable version, and then figure out the "allow user namespaces" thing.

But the answer is yes, still appear to be having same problem.

I launched it from Konsole, and I did get a few error messages, not sure if these will mean anything to you or not:
[19948:20002:0518/164632.483345:ERROR:nss_util.cc(724)] After loading Root Certs, loaded==false: NSS error code: -8018
[19948:20009:0518/164632.512517:ERROR:in_progress_cache_impl.cc(93)] Could not read download entries from file because there was a read failure.
ATTENTION: default value of option force_s3tc_enable overridden by environment.
[20023:20023:0518/164632.684548:ERROR:sandbox_linux.cc(379)] InitializeSandbox() called with multiple threads in process gpu-process.
[1:18:0518/164719.149559:ERROR:adm_helpers.cc(73)] Failed to query stereo recording.
[1:18:0518/164725.256161:ERROR:sctptransport.cc(818)] SctpTransport->SendQueuedStreamResets(): Failed to send a stream reset for 1 streams: [0x00000009] Bad file descriptor
[1:18:0518/164741.022261:ERROR:sctptransport.cc(818)] SctpTransport->SendQueuedStreamResets(): Failed to send a stream reset for 1 streams: [0x00000009] Bad file descriptor
[1:18:0518/164754.243918:ERROR:sctptransport.cc(818)] SctpTransport->SendQueuedStreamResets(): Failed to send a stream reset for 1 streams: [0x00000009] Bad file descriptor

I also just realized that I had old version of Chromium still open when I executed sudo apt remove ungoogled-chromium ungoogled-chromium-common ungoogled-chromium-driver ungoogled-chromium-shell ungoogled-chromium-widevine. I closed it and started the portable version but all settings (and plug-ins, etc.) from old version were still there. I am now thinking I should have done purge? I will wait for your instructions before proceeding further.

@Eloston
Copy link
Member

Eloston commented May 19, 2018

Since Portable Linux is having the same problem, it's possible this is a bug in Chromium. Could you try out the new Debian binaries I published just to be sure?

I am now thinking I should have done purge?

I don't think this is a problem with your browser profile. But if you want to test, you can just move or delete your configuration in ~/.config/chromium and let the browser generate a new one to be certain.

Also, the purge scripts of the Debian packages don't clear out directories in your home directory (i.e. ~/.cache/chromium, ~/.config/chromium, etc)

@Eloston
Copy link
Member

Eloston commented Jun 21, 2018

67 is out. If this is still a problem for you, let us know here.

@TRSx80
Copy link
Author

TRSx80 commented Jun 21, 2018

Just for informational purposes, I got busy with other projects and never got back to working on this. But I expect to at some point, if/when I do, I will try and remember to report back, one way or the other.

Thank you very much for your time and keep up the great work! Cheers!

@jackhill
Copy link

As per #785 (comment) in #785 I'm think I'm still experiencing this with Version 75.0.3770.142 (Developer Build) (64-bit)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants