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 local audio and video not disabled when not available #938

Merged

Conversation

danxuliu
Copy link
Member

@danxuliu danxuliu commented Jun 6, 2018

When the streams are initialized and there is no audio or no video the audio/videoNotFound flag is set. This flag prevents the audio or video from being enabled later, and it is also used to discard calls to disableAudio/Video, as there would be no need to disable them if they were not found. However, in that last case, it is necessary to explicitly disable them before the flag is set.

The most evident problem of not disabling the video before setting videoNotFound can be seen when joining a call with microphone but without camera, as in that case an empty video would be shown instead of the avatar of the local user.

Before:
local-video-before

After:
local-video-after

When the streams are initialized and there is no audio or no video the
"audio/videoNotFound" flag is set. This flag prevents the audio or video
from being enabled later, and it is also used to discard calls to
"disableAudio/Video", as there would be no need to disable them if they
were not found. However, in that last case, it is necessary to
explicitly disable them before the flag is set.

Signed-off-by: Daniel Calviño Sánchez <[email protected]>
@Ivansss Ivansss merged commit 86f1310 into master Jun 6, 2018
@Ivansss Ivansss deleted the fix-local-audio-and-video-not-disabled-when-not-available branch June 6, 2018 14:02
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