mirror of
https://github.com/jech/galene.git
synced 2024-12-22 15:25:48 +01:00
Include camera indicator in users list.
This commit is contained in:
parent
ae782f5d00
commit
db30b052f9
2 changed files with 36 additions and 0 deletions
|
@ -1156,6 +1156,22 @@ header .collapse:hover {
|
|||
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 {
|
||||
font: normal 1em/1 Arial, sans-serif;
|
||||
display: inline-block;
|
||||
|
|
|
@ -2172,6 +2172,26 @@ function setUserStatus(id, elt, userinfo) {
|
|||
elt.classList.add('user-status-raisehand');
|
||||
else
|
||||
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');
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue