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

Always try to use microphone if camera failed #3775

Merged

Conversation

danxuliu
Copy link
Member

@danxuliu danxuliu commented Jun 8, 2020

When getting the local media it is first tried to get both microphone and camera and, if that fails, then it is tried to get only the microphone.

However, this was done only when certain errors happened while trying to get both the microphone and the camera. Now, no matter the error, it is tried too to get only the microphone; if the media is still unavailable it will fail again, but this should help with some further scenarios not covered yet in the previously handled errors in which camera is not available but microphone is.

Found while testing #3730 with Firefox 77 with microphone but no camera, as in that case a NNotAllowedError was triggered when resistFingerprinting was enabled (if it was not enabled then NotFoundErrorwas triggered, which was already handled).

Fix #154

When getting the local media it is first tried to get both microphone
and camera and, if that fails, then it is tried to get only the
microphone.

However, this was done only when certain errors happened while trying to
get both the microphone and the camera. Now, no matter the error, it is
tried too to get only the microphone; if the media is still unavailable
it will fail again, but this should help with some further scenarios not
covered yet in the previously handled errors in which camera is not
available but microphone is.

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
@danxuliu danxuliu added 3. to review bug feature: WebRTC 🚡 WebRTC connection between browsers and/or mobile clients feature: frontend 🖌️ "Web UI" client feature: call 📹 Voice and video calls labels Jun 8, 2020
@danxuliu danxuliu added this to the 💚 Next Major (20) milestone Jun 8, 2020
@danxuliu danxuliu requested a review from nickvergessen June 8, 2020 09:40
@danxuliu
Copy link
Member Author

danxuliu commented Jun 8, 2020

/backport to stable19

@danxuliu
Copy link
Member Author

danxuliu commented Jun 8, 2020

/backport to stable18

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
4. to release bug feature: call 📹 Voice and video calls feature: frontend 🖌️ "Web UI" client feature: WebRTC 🚡 WebRTC connection between browsers and/or mobile clients
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Offer help for not working mic/video
2 participants