fix(conference): disable video icon

Explicitly calls 'updateVideoIconEnabled' in case both audio and video
permission were not granted and device list changed callbacks will not
be executed (check in lib-jitsi-meet that it requires GUM call to
succeed at least once for device list changed events).
This commit is contained in:
paweldomas 2017-07-10 16:32:50 +02:00 committed by virtuacoplenny
parent 63377a2f76
commit 21957c8bf2
1 changed files with 7 additions and 0 deletions

View File

@ -629,6 +629,13 @@ export default {
// the video later on, even if joined without it.
this.videoMuted = true;
APP.UI.setVideoMuted(this.getMyUserId(), this.videoMuted);
// FIXME this is a workaround for the situation where
// both audio and video permissions are rejected initially
// and the callback from _initDeviceList will never be
// executed (GUM not initialized - check lib-jitsi-meet).
// The goal here is to disable the video icon in case no
// video permissions were granted.
this.updateVideoIconEnabled();
}
this._initDeviceList();