-
Notifications
You must be signed in to change notification settings - Fork 509
Do not reuse media constraints between independent media requests #3912
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
Merged
nickvergessen
merged 3 commits into
master
from
do-not-reuse-media-constraints-between-independent-media-requests
Jul 17, 2020
Merged
Do not reuse media constraints between independent media requests #3912
nickvergessen
merged 3 commits into
master
from
do-not-reuse-media-constraints-between-independent-media-requests
Jul 17, 2020
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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]>
Member
Author
|
/backport to stable19 |
Member
Author
|
/backport to stable18 |
8 tasks
Member
|
I never so far saw the fixup bot failing... there is a first time for everything :D |
nickvergessen
approved these changes
Jul 17, 2020
|
The backport to stable18 failed. Please do this backport manually. |
Member
Author
|
Backport to stable18 will probably work once #3899 is merged. |
Member
Author
|
I just made the backport to stable18 and I will rebase #3899 on top of it. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Besides that, now an error message is shown to the user if the video could not be got (except if the reason is that there is no camera).
How to test (scenario 1)
Result with this pull request
The camera is available in the call.
Result without this pull request
The camera is not available in the call.
How to test (scenario 2)
Result with this pull request
The camera is not available in the call, but an error is shown to the user.
Result without this pull request
The camera is not available in the call and no error is shown to the user.