diff --git a/avatar.js b/avatar.js index 98be20478..58abfe7c4 100644 --- a/avatar.js +++ b/avatar.js @@ -77,8 +77,7 @@ var Avatar = (function(my) { //currently shown if (activeSpeakerJid === jid && VideoLayout.isLargeVideoOnTop()) { setVisibility($("#largeVideo"), !show); - setVisibility($('#activeSpeakerAvatar'), show); - setVisibility($('#activeSpeakerAudioLevel'), show); + setVisibility($('#activeSpeaker'), show); setVisibility(avatar, false); setVisibility(video, false); } else { diff --git a/css/videolayout_default.css b/css/videolayout_default.css index d26eeb7cc..c7d428861 100644 --- a/css/videolayout_default.css +++ b/css/videolayout_default.css @@ -377,11 +377,21 @@ pointer-events: none; } -#activeSpeakerAudioLevel { +#activeSpeaker { visibility: hidden; + width: 150px; + height: 150px; + margin: auto; + overflow: hidden; + position: relative; +} + +#activeSpeakerAudioLevel { position: absolute; - top: 113px; + top: 0px; + left: 0px; z-index: 1; + visibility: inherit; } #mixedstream { @@ -389,13 +399,14 @@ } #activeSpeakerAvatar { - visibility: hidden; width: 100px; height: 100px; + top: 25px; margin: auto; position: relative; border-radius: 50px; z-index: 2; + visibility: inherit; } .userAvatar { diff --git a/etherpad.js b/etherpad.js index 7ff68e6f1..157fe09b2 100644 --- a/etherpad.js +++ b/etherpad.js @@ -42,6 +42,7 @@ var Etherpad = (function (my) { largeVideo = $('#largeVideo'); if ($('#etherpad>iframe').css('visibility') === 'hidden') { + $('#activeSpeaker').css('visibility', 'hidden'); largeVideo.fadeOut(300, function () { if (Prezi.isPresentationVisible()) { largeVideo.css({opacity: '0'}); diff --git a/index.html b/index.html index 955d910b2..1a4a3b228 100644 --- a/index.html +++ b/index.html @@ -41,15 +41,15 @@ - - + + - + @@ -66,11 +66,11 @@ - + - + @@ -264,8 +264,10 @@
powered by jitsi.org - - +
+ + +
diff --git a/prezi.js b/prezi.js index 22bde5879..4977a433d 100644 --- a/prezi.js +++ b/prezi.js @@ -25,7 +25,7 @@ var Prezi = (function (my) { ToolbarToggler.dockToolbar(true); VideoLayout.setLargeVideoVisible(false); }); - $('#activeSpeakerAvatar').css('visibility', 'hidden'); + $('#activeSpeaker').css('visibility', 'hidden'); } else { if (prezi.css('opacity') == '1') { diff --git a/videolayout.js b/videolayout.js index 308a43372..10654ef91 100644 --- a/videolayout.js +++ b/videolayout.js @@ -173,8 +173,7 @@ var VideoLayout = (function (my) { if (RTC.getVideoSrc($('#largeVideo')[0]) !== newSrc) { - $('#activeSpeakerAvatar').css('visibility', 'hidden'); - $('#activeSpeakerAudioLevel').css('visibility', 'hidden'); + $('#activeSpeaker').css('visibility', 'hidden'); // Due to the simulcast the localVideoSrc may have changed when the // fadeOut event triggers. In that case the getJidFromVideoSrc and // isVideoSrcDesktop methods will not function correctly. @@ -434,6 +433,7 @@ var VideoLayout = (function (my) { } else { $('#largeVideo').css({visibility: 'hidden'}); + $('#activeSpeaker').css('visibility', 'hidden'); $('.watermark').css({visibility: 'hidden'}); VideoLayout.enableDominantSpeaker(resourceJid, false); if(focusedVideoInfo) { @@ -1040,10 +1040,8 @@ var VideoLayout = (function (my) { $('#largeVideoContainer').height(availableHeight); var avatarSize = interfaceConfig.ACTIVE_SPEAKER_AVATAR_SIZE; - var top = (availableHeight - avatarSize) / 2; - $('#activeSpeakerAvatar').css('top', top); - $('#activeSpeakerAudioLevel').css('top', top - avatarSize / 4); - $('#activeSpeakerAudioLevel').css('left', availableWidth / 2 - avatarSize * 3 / 4); + var top = availableHeight / 2 - avatarSize / 4 * 3; + $('#activeSpeaker').css('top', top); VideoLayout.resizeThumbnails(); };