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

Fix name not shown for registered users without microphone nor camera #982

Conversation

danxuliu
Copy link
Member

When the peer is a registered user her name is shown when a stream is added for that peer. However, if the peer has no microphone nor camera then no stream is added, and thus the name was not shown. Now the name is shown too when the connection is established to guarantee that it will be shown even if no stream is added.

In the case of guest users the name is shown when a stream is added for that peer, but also when a nickChanged message is received. That message is sent when the peers are connected, so the name of the guest user was already properly set even if the user has no microphone nor camera.

How to test:

  • As user A, start a call with user B
  • As user B, join the call with user A without granting permissions for microphone nor camera

Expected result
The display name of user B appears below her avatar in user A's screen

Actual result
User B's name does not appear in user A's screen

When the peer is a registered user her name is shown when a stream is
added for that peer. However, if the peer has no microphone nor camera
then no stream is added, and thus the name was not shown. Now the name
is shown too when the connection is established to guarantee that it
will be shown even if no stream is added.

In the case of guest users the name is shown when a stream is added for
that peer, but also when a "nickChanged" message is received. That
message is sent when the peers are connected, so the name of the guest
user was already properly set even if the user has no microphone nor
camera.

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
@nickvergessen nickvergessen merged commit 0a5f065 into master Jun 21, 2018
@nickvergessen nickvergessen deleted the fix-name-not-shown-for-registered-users-without-microphone-nor-camera branch June 21, 2018 10:26
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.

2 participants