Skip to content

Conversation

@danxuliu
Copy link
Member

Backport of #3912

danxuliu added 3 commits July 20, 2020 19:37
Signed-off-by: Daniel Calviño Sánchez <[email protected]>
When getting the user media for the first time both audio and video are
requested. If video is not available then the user media is got again
requesting only audio. However, as the media constraints were reused in
any following user media request as soon as video failed once it was
never requested again. Therefore if a camera was plugged in later it was
ignored until Talk was restarted.

Now getting the user media always tries first with both audio and video
and then fallbacks to trying only with audio, even if video was not
available in a previous request.

Signed-off-by: Daniel Calviño Sánchez <[email protected]>
The error is shown only if there was an actual error when getting the
video; it is not shown if there is simply no camera, or if neither audio
nor video could be got (as there was already a different toast in place
in that case).

Signed-off-by: Daniel Calviño Sánchez <[email protected]>
@nickvergessen nickvergessen merged commit 8f97b72 into stable18 Jul 21, 2020
@nickvergessen nickvergessen deleted the backport/3912/stable18-do-not-reuse-media-constraints-between-independent-media-requests branch July 21, 2020 06:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants