Commit db30b052 authored by Juliusz Chroboczek's avatar Juliusz Chroboczek

Include camera indicator in users list.

parent ae782f5d
......@@ -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');
}
}
/**
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment