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 disabling video when joining a call in a room with more than five participants #1574

Conversation

danxuliu
Copy link
Member

How to test

  • Create a room and add five or more participants to it
  • Create another room with no participants, start a call and enable the video (to guarantee that the last call used had video enabled and thus the next call will have it enabled too, as the setting is remembered)
  • Reload Talk UI
  • Enter the room with five or more participants
  • Start a call in the room with five or more participants

Result with this pull request:
Local video is disabled.

Result without this pull request:
Local video is enabled.

@danxuliu
Copy link
Member Author

/backport to stable15

Until now, when entering a room with more than five participants the
video was disabled. However, if the local video is available it is
enabled when WebRTC starts. Due to this, if WebRTC was also started when
joining the call (that is, no previous calls were made in other rooms
since the last page reload) the video was enabled instead of disabled.
Besides that, if leaving the call with the video enabled and joining it
again the video was still enabled, as the room had not been entered
again to disable the video. To fix both issues now the video is disabled
when joining the call instead of when entering the room.

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
When calling "disableVideo" the video was hidden even if it was not
possible to disable the video; this was done to hide the video even if
WebRTC was not started yet when "disableVideo" was called. Now that the
video is disabled when joining the call in a room with more than five
participants instead of just when entering a room with more than five
participants that special behaviour is no longer needed.

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
@danxuliu danxuliu force-pushed the fix-disabling-video-when-joining-a-call-in-a-room-with-more-than-five-participants branch from cef2f24 to 726eb60 Compare February 21, 2019 17:31
@nickvergessen nickvergessen merged commit 2f4726d into master Feb 25, 2019
@nickvergessen nickvergessen deleted the fix-disabling-video-when-joining-a-call-in-a-room-with-more-than-five-participants branch February 25, 2019 14:04
@backportbot-nextcloud
Copy link

backport to stable15 in #1578

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