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

1:1 Call Gives A Microphone Error #1197

Closed
TheDarkula opened this issue Sep 3, 2023 · 12 comments
Closed

1:1 Call Gives A Microphone Error #1197

TheDarkula opened this issue Sep 3, 2023 · 12 comments
Labels
T-Defect X-Community-Supported-Platform This issue occurs in a platform not directly supported by us, but by a community project elsewhere X-Needs-Info This issue is blocked awaiting information from the reporter Z-Arch

Comments

@TheDarkula
Copy link

Steps to reproduce

  1. Select microphone and camera in settings
  2. Initiate a voice or video call
  3. Be greeted with this:
    Error

Outcome

What did you expect?

A call to succeed.

What happened instead?

Element complains that a microphone cannot be accessed.

Also, calls do succeed with element-android between two android devices. Calls only fail with element-desktop.
Another note is that the microphone/camera do function via XMPP.

Operating system

Arch Linux

Application version

Element version: 1.11.40 Olm version: 3.2.14

How did you install the app?

Arch Extra

Homeserver

Non-Public homserver running Conduit 0.6.0

Will you send logs?

Yes

@t3chguy
Copy link
Member

t3chguy commented Sep 4, 2023

Will you send logs?
Yes

No logs have come through, try again

@t3chguy t3chguy added Z-Arch X-Community-Supported-Platform This issue occurs in a platform not directly supported by us, but by a community project elsewhere X-Needs-Info This issue is blocked awaiting information from the reporter labels Sep 4, 2023
@TheDarkula
Copy link
Author

@t3chguy Here you go :)

2023-09-03T15:08:42.802Z D MediaHandler getUserMediaStreamInternal() calling getUserMediaStream (streamId=736f4189-2687-4bb1-a661-d952c79b9e2d, shouldRequestAudio=true, shouldRequestVideo=true, constraints={"audio":{"deviceId":{"ideal":"8359551325d8124bcf09d58faeb16566982127651296e59d077dd4a2e14bc805"},"autoGainControl":{"ideal":true},"echoCancellation":{"ideal":true},"noiseSuppression":{"ideal":true}},"video":{"deviceId":{"ideal":"dc7343af9d9573e532f79f780946f53ebd5c952f3df15928ef028182a869cfd3"},"width":{"exact":640},"height":{"exact":360}}})
2023-09-03T15:08:42.809Z D TURN creds are valid for another 86258408 ms: not fetching new ones.
2023-09-03T15:08:42.810Z W Call 1693753722401OkdxjjubnB32Mrb8 getUserMediaFailed() failed to get user media - ending call Failed to construct 'RTCPeerConnection': ICE server parsing failed: Empty uri. (SyntaxError | 12)
2023-09-03T15:08:42.811Z E Call error: Couldn't start capturing media! Is your microphone set up and does this app have permission?: SyntaxError: Failed to construct 'RTCPeerConnection': ICE server parsing failed: Empty uri.
Error: Couldn't start capturing media! Is your microphone set up and does this app have permission?: SyntaxError: Failed to construct 'RTCPeerConnection': ICE server parsing failed: Empty uri.
    at k.getUserMediaFailed (vector://vector/webapp/bundles/0bae4ca718aadea70413/bundle.js:2:90864)
    at k.placeCall (vector://vector/webapp/bundles/0bae4ca718aadea70413/bundle.js:2:132410)
    at async k.placeVideoCall (vector://vector/webapp/bundles/0bae4ca718aadea70413/bundle.js:2:95972)
2023-09-03T15:08:42.811Z D Call state in !vbCe1buotfgnqAjW9b:matrix.domain.com changed to ended
2023-09-03T15:08:42.844Z D Removing call for room  !vbCe1buotfgnqAjW9b:matrix.domain.com
2023-09-03T15:08:42.845Z D LegacyCallHandler.play(callendAudio): beginning of function
2023-09-03T15:08:42.845Z D LegacyCallHandler.play(callendAudio): attempting to play audio at volume=1
2023-09-03T15:08:42.846Z D Call completed. Call ID: 1693753722401OkdxjjubnB32Mrb8, virtual room ID: !vbCe1buotfgnqAjW9b:matrix.domain.com, user-facing room ID: !vbCe1buotfgnqAjW9b:matrix.domain.com, direction: outbound, our Party ID: DYplDreikF, hangup party: local, hangup reason: no_user_media
2023-09-03T15:08:42.846Z D Call statistics are undefined. The call has probably failed before a peerConn was established
2023-09-03T15:08:42.846Z D Call 1693753722401OkdxjjubnB32Mrb8 stopAllMedia() running
2023-09-03T15:08:42.891Z D LegacyCallHandler.play(callendAudio): playing audio successfully
2023-09-03T15:08:49.690Z D Returning cached capabilities

@t3chguy
Copy link
Member

t3chguy commented Sep 5, 2023

Looks like your TURN server is misconfigured - SyntaxError: Failed to construct 'RTCPeerConnection': ICE server parsing failed: Empty uri.

https://spec.matrix.org/v1.8/client-server-api/#get_matrixclientv3voipturnserver

@t3chguy
Copy link
Member

t3chguy commented Sep 5, 2023

Closing as a misconfiguration
element-hq/element-web#21804 is the issue about the confusing error

@t3chguy t3chguy closed this as completed Sep 5, 2023
@TheDarkula
Copy link
Author

@t3chguy I am running my homeserver privately/on a LAN, so there is no need for TURN. Why does the desktop client fail while the android client succeeds?

@t3chguy
Copy link
Member

t3chguy commented Sep 5, 2023

@TheDarkula STUN may still be necessary depending on the exact specifics. matrix-org/matrix-js-sdk#3695 might fix your scenario it might not. Hopefully the VoIP team will voice in on the PR.

@TheDarkula
Copy link
Author

@t3chguy Thank you for the information and the pull request :)

Presuming that is merged in, when will that change make its way into the desktop client?

@t3chguy
Copy link
Member

t3chguy commented Sep 5, 2023

If it merged in after an RC then up to 3 weeks later. We do an RC every 2 weeks, we release the candidate a week after it is made.

@TheDarkula
Copy link
Author

Wonderful, I will keep track of it.
Would you like me to let you know if it works once it is in?

@t3chguy
Copy link
Member

t3chguy commented Sep 5, 2023

Sure, if it isn't fixed once the PR makes it into a release I suggest opening an issue in https://github.com/vector-im/element-web/

@t3chguy
Copy link
Member

t3chguy commented Sep 5, 2023

@TheDarkula the PR got approved and will be merged later today, in time for today's RC so it should be in release in 7 days.

@TheDarkula
Copy link
Author

Will do :)

Wonderful! Thank you so much!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
T-Defect X-Community-Supported-Platform This issue occurs in a platform not directly supported by us, but by a community project elsewhere X-Needs-Info This issue is blocked awaiting information from the reporter Z-Arch
Projects
None yet
Development

No branches or pull requests

2 participants