nextcloud / nextcloud/spreed

Media is disabled during a call when changing to a different device

Open
#7,025 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug feature: call 📹 feature: frontend 🖌️
Dominant language
PHP
Stars
2.2k
Forks
587
Avg merge
18h 27m
Merged PRs (30d)
333

Description

It would make sense to keep the media enabled when switching to a different device and only disabling it if it is actually unavailable (either because no device was selected or because there was an error when getting the media).

The current behaviour is a side effect of disabling the media when not available, as during the device change the media becomes temporary unavailable (due to the MediaDevicesManager stopping the previous track before getting the new one and the pipeline removing the now ended track).

How to test

  • Connect more than one microphone or camera
  • Start a call with audio and/or video
  • Enable audio if you have more than one microphone or video if you have more than one camera
  • Open the device settings and select a different microphone or camera
Result with this pull request

The media is still enabled

Result without this pull request

The media was disabled by changing to the other device

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by tracing the MediaDevicesManager device-change flow and the pipeline behavior when the previous track ends. Reproduce the issue with multiple microphones or cameras during a call, then verify that switching devices keeps audio or video enabled while genuinely unavailable media is still disabled.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
audio-video-rtc
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.