fix(video-layout): always honor local video changes

During the implementation of starting as video muted, a check
was put in place to update the local thumbnail view container's
known local track only if the track was not muted. This can
cause the container to become desynced with the current local
track.(Ideally in the future all state would be in redux so this
manual syncing would not be needed.) Removing the if-muted
check seems to cause no side-effects and makes implementation of
device-switch-while-audio-only a lot simpler because new tracks
can be muted and used immediately.
This commit is contained in:
Leonard Kim 2017-04-27 15:30:39 -07:00
parent 929bc8b8b9
commit ef9f145cb5
1 changed files with 1 additions and 3 deletions

View File

@ -176,9 +176,7 @@ var VideoLayout = {
let localId = APP.conference.getMyUserId();
this.onVideoTypeChanged(localId, stream.videoType);
if (!stream.isMuted()) {
localVideoThumbnail.changeVideo(stream);
}
localVideoThumbnail.changeVideo(stream);
/* force update if we're currently being displayed */
if (this.isCurrentlyOnLarge(localId)) {