Merge pull request #827 from jitsi/fix-missing-indications-on-no-video-device
Moves local video thumb initializations where they belong.
This commit is contained in:
commit
224670ed03
|
@ -24,6 +24,11 @@ function LocalVideo(VideoLayout, emitter) {
|
|||
this.initBrowserSpecificProperties();
|
||||
|
||||
SmallVideo.call(this, VideoLayout);
|
||||
|
||||
// Set default display name.
|
||||
this.setDisplayName();
|
||||
|
||||
this.createConnectionIndicator();
|
||||
}
|
||||
|
||||
LocalVideo.prototype = Object.create(SmallVideo.prototype);
|
||||
|
|
|
@ -107,7 +107,9 @@ var VideoLayout = {
|
|||
localVideoThumbnail.setVideoType(VIDEO_CONTAINER_TYPE);
|
||||
// if we do not resize the thumbs here, if there is no video device
|
||||
// the local video thumb maybe one pixel
|
||||
this.resizeThumbnails(false, true, false);
|
||||
let {thumbWidth, thumbHeight}
|
||||
= this.resizeThumbnails(false, true, false);
|
||||
AudioLevels.updateAudioLevelCanvas(null, thumbWidth, thumbHeight);
|
||||
|
||||
emitter.addListener(UIEvents.CONTACT_CLICKED, onContactClicked);
|
||||
this.lastNCount = config.channelLastN;
|
||||
|
@ -158,16 +160,9 @@ var VideoLayout = {
|
|||
},
|
||||
|
||||
changeLocalVideo (stream) {
|
||||
// Set default display name.
|
||||
localVideoThumbnail.setDisplayName();
|
||||
localVideoThumbnail.createConnectionIndicator();
|
||||
|
||||
let localId = APP.conference.getMyUserId();
|
||||
this.onVideoTypeChanged(localId, stream.videoType);
|
||||
|
||||
let {thumbWidth, thumbHeight} = this.resizeThumbnails(false, true);
|
||||
AudioLevels.updateAudioLevelCanvas(null, thumbWidth, thumbHeight);
|
||||
|
||||
if (!stream.isMuted()) {
|
||||
localVideoThumbnail.changeVideo(stream);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue