Media is disabled during a call when changing to a different device
Nobody has claimed this yet.
- 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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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