element-desktop icon indicating copy to clipboard operation
element-desktop copied to clipboard

Couldn't start capturing media! Is your microphone set up and does this app have permission?

Open RyanBraley opened this issue 6 years ago • 19 comments

Hi,

Riot desktop cannot do audio or video calls: I get this error message Couldn't start capturing media! Is your microphone set up and does this app have permission?

Riot Version: Version 1.2.1(1.2.1)

Log: sent

RyanBraley avatar Jun 01 '19 18:06 RyanBraley

Screen Shot 2019-06-01 at 11 43 53 PM (2)

RyanBraley avatar Jun 02 '19 14:06 RyanBraley

Hi @RyanBraley - can you advise which OS/version you're running on?

lampholder avatar Jun 03 '19 14:06 lampholder

I am on MacOS mojave 10.14.5

It used to work for a while then maybe I added a new microphone device or was using my camera in another app and it never worked again. I don't think it was an upgrade that caused this, although this issue has persisted across multiple releases now. https://github.com/vector-im/riot-web/issues/8979 https://github.com/vector-im/riot-web/issues/8993

At the very least I would like to have the video chat back. Right now audio only calls work fine, but when I start a video call I get the above screenshot message. @lampholder

rbraley avatar Jun 04 '19 06:06 rbraley

If you try the web version at https://riot.im/app, what behaviour do you see there?

jryans avatar Jun 07 '19 12:06 jryans

The web version works perfectly well for video calls. No video issue.

Here is a log from the desktop client. vector-1559403935906.log

rbraley avatar Jun 08 '19 17:06 rbraley

Interesting! Which browser(s) and browser version(s) did you try?

jryans avatar Jun 10 '19 10:06 jryans

I tried on Waterfox which I believe is based upon Firefox 56. It worked the first time for video call but I plugged in a new mic and opened a screen capture software later and it doesn’t work anymore in the browser. Is there anyway to clear the local storage on some of that or reset my profile data again. It’s a shame to not be able to do calls and switch to another app.

rbraley avatar Jun 10 '19 16:06 rbraley

You could experiment with removing the desktop app's profile data on disk with the app is closed. On macOS, that data is stored at /Users/<User>/Library/Application Support/Riot. I would recommend keeping a backup just in case. Also, removing the profile data will force you to log in again. If you haven't set up key backup already, you might lose access to messages in encrypted rooms, so consider setting that up first.

jryans avatar Jun 17 '19 09:06 jryans

I am running into the same issue on 1.4.1, and removing that directory did not resolve it

lzmartinico avatar Oct 03 '19 22:10 lzmartinico

Have the same issue. I'm on macOS Mojave 10.14.6 and Riot Desktop 1.5.3 In the settings I don't see the button for requesting permission but I see the dropdowns for choosing the devices. In macOS privacy settings for camera/mic the app isn't listed.

I checked a view older versions of Riot, at every try I deleted /Users/<User>/Library/Application Support/Riot and installed the other version. 1.5.3 -> not working 1.4.2 -> not working 1.3.6 -> working, asking for permission

awesome-michael avatar Nov 17 '19 21:11 awesome-michael

Think this could be the issue: https://github.com/electron/electron/issues/20449

A workaround is to install the 1.3.6 version of Riot, get camera/mic permission and then update to 1.5.3. MacOS saves the permission and Riot is able to use camera/mic.

awesome-michael avatar Nov 25 '19 13:11 awesome-michael

Thanks for the update! I think we may need to see how that Electron issue unfolds upstream.

jryans avatar Nov 25 '19 13:11 jryans

Have not tested excessively but it seems v1.5.4 also works. I got the request for camera permission after updating. Maybe vector-im/element-web#11435 fixed this. Give it a try.

awesome-michael avatar Nov 27 '19 07:11 awesome-michael

Testing with Windows 10 Pro 64bit, cannot initiate calls because of the permissions Testing with Chrome Canary I also cannot initiate calls because of the permissions Testing with Firefox Nightly properly asked for permissions and worked.

Lyamc avatar Apr 06 '20 19:04 Lyamc

Ok I have maybe found a related bug

  1. When I click on Audio or Video call button I always had a Couldn't start capturing media! Is your microphone set up and does this app have permission?
  2. I check devices configuration in Settings/Audio & Video and all peripheral was on Default.
  3. I change all the Default to the correct peripheral
  4. And Voila it works !

On 1.6.0 on riot-desktop Archlinux.

HugoPoi avatar May 07 '20 11:05 HugoPoi

I change all the Default to the correct peripheral

This worked for me on riot-desktop as well but as far as I remember only until a certain version. Since element the workaround doesn't work anymore.

My system details:

  • Element version: 1.7.1
  • olm version: 3.1.3
  • Debian 10.5

r4dh4l avatar Aug 27 '20 12:08 r4dh4l

The same issue here for me :

  • Element 1.7.5
  • olm 3.1.3
  • Windows 10 version 2004

gitmeatrisk avatar Sep 02 '20 07:09 gitmeatrisk

I have the same issue on Debian Sid, 1.7.8 I tried with Pulseaudio and without Pulse (removed it from the system), with Alsa No luck

I think that was working with previous version.

gerroon avatar Oct 04 '20 20:10 gerroon

I have one desktop one laptop, same os (debian buster) and same Chrome version (Version 89.0.4389.114 (Official Build) (64-bit))

The desktop works out of the box, while on the laptop I had this error message. As described here the fix for me was to explicitely select the audio and video and NOT use the defaults in the settings. Hope it helps someone down the road.

euri10 avatar Apr 26 '21 07:04 euri10