1
Fork 0
mirror of https://github.com/jech/galene.git synced 2024-11-22 16:45:58 +01:00

Include camera indicator in users list.

This commit is contained in:
Juliusz Chroboczek 2022-09-16 18:53:02 +02:00
parent ae782f5d00
commit db30b052f9
2 changed files with 36 additions and 0 deletions

View file

@ -1156,6 +1156,22 @@ header .collapse:hover {
content: "\f256"; content: "\f256";
} }
#users > div::after {
font-family: 'Font Awesome 6 Free';
color: #808080;
margin-left: 5px;
font-weight: 900;
float: right;
}
#users > div.user-status-microphone::after {
content: "\f130";
}
#users > div.user-status-camera::after {
content: "\f030";
}
.close-icon { .close-icon {
font: normal 1em/1 Arial, sans-serif; font: normal 1em/1 Arial, sans-serif;
display: inline-block; display: inline-block;

View file

@ -2172,6 +2172,26 @@ function setUserStatus(id, elt, userinfo) {
elt.classList.add('user-status-raisehand'); elt.classList.add('user-status-raisehand');
else else
elt.classList.remove('user-status-raisehand'); elt.classList.remove('user-status-raisehand');
let microphone=false, camera = false;
for(let label in userinfo.streams) {
for(let kind in userinfo.streams[label]) {
if(kind == 'audio')
microphone = true;
else
camera = true;
}
}
if(camera) {
elt.classList.remove('user-status-microphone');
elt.classList.add('user-status-camera');
} else if(microphone) {
elt.classList.add('user-status-microphone');
elt.classList.remove('user-status-camera');
} else {
elt.classList.remove('user-status-microphone');
elt.classList.remove('user-status-camera');
}
} }
/** /**