зеркало из https://github.com/nextcloud/spreed.git
Renamed class and refactor code
Signed-off-by: Artur Bergen <artur.bergen@struktur.de>
This commit is contained in:
Родитель
bd5475e07b
Коммит
35f2b2fd1c
|
@ -420,12 +420,12 @@ video {
|
|||
opacity: .7;
|
||||
}
|
||||
|
||||
.nameIndicator button.video-available {
|
||||
.nameIndicator button.no-video-available {
|
||||
opacity: .7;
|
||||
cursor: not-allowed;
|
||||
}
|
||||
|
||||
.nameIndicator button.video-available:active {
|
||||
.nameIndicator button.no-video-available:active {
|
||||
background-color: transparent;
|
||||
}
|
||||
|
||||
|
|
|
@ -629,7 +629,7 @@
|
|||
var avatarContainer = $hideVideoButton.closest('.videoView').find('.avatar-container');
|
||||
var localVideo = $hideVideoButton.closest('.videoView').find('#localVideo');
|
||||
|
||||
if (!$hideVideoButton.hasClass('video-available')) {
|
||||
if (!$hideVideoButton.hasClass('no-video-available')) {
|
||||
$hideVideoButton.attr('data-original-title', t('spreed', 'Enable video'))
|
||||
.addClass('video-disabled icon-video-off-white')
|
||||
.removeClass('icon-video-white');
|
||||
|
|
|
@ -955,11 +955,10 @@ var spreedPeerConnectionTable = [];
|
|||
OCA.SpreedMe.app.enableVideo();
|
||||
}
|
||||
|
||||
var availableStream = $(OCA.SpreedMe.webrtc.webrtc.localStream.getVideoTracks());
|
||||
var $hideVideoButton = $('#hideVideo');
|
||||
if(availableStream.length < 1 || availableStream.length == undefined) {
|
||||
if(OCA.SpreedMe.webrtc.webrtc.localStream.getVideoTracks() < 1) {
|
||||
$hideVideoButton.removeClass('video-disabled icon-video-off-white')
|
||||
.addClass('video-available icon-video-off-white')
|
||||
.addClass('no-video-available icon-video-off-white')
|
||||
.attr('data-original-title', t('spreed', 'No Camera'));
|
||||
}
|
||||
});
|
||||
|
|
Загрузка…
Ссылка в новой задаче