1
Fork 0
mirror of https://github.com/jech/galene.git synced 2024-11-26 10:35:59 +01:00
This commit is contained in:
Juliusz Chroboczek 2022-03-26 11:53:26 +01:00
parent eb21c1ab20
commit c44bd24706
2 changed files with 46 additions and 0 deletions

View file

@ -1194,10 +1194,36 @@ header .collapse:hover {
font-weight: 900;
}
#users > div::after {
font-family: 'Font Awesome 6 Free';
color: gray;
margin-left: auto;
font-weight: 900;
}
#users > div.user-status-raisehand::before {
content: "\f256";
}
#users > div.user-status-camera::after {
content: "\f03d";
}
#users > div.user-status-camera.user-status-screenshare::after {
content: "\f03d \f390";
}
#users > div.user-status-microphone::after {
content: "\f130";
}
#users > div.user-status-microphone.user-status-screenshare::after {
content: "\f130 \f390";
}
#users > div.user-status-screenshare::after {
content: "\f390";
}
.close-icon {
font: normal 1em/1 Arial, sans-serif;
display: inline-block;

View file

@ -2167,6 +2167,26 @@ function setUserStatus(id, elt, userinfo) {
elt.classList.add('user-status-raisehand');
else
elt.classList.remove('user-status-raisehand');
console.log(userinfo.streams);
let camera = userinfo.streams['camera'];
if(camera && camera['video']) {
elt.classList.add('user-status-camera');
elt.classList.remove('user-status-microphone');
} else if(camera && camera['audio']) {
elt.classList.remove('user-status-camera');
elt.classList.add('user-status-microphone');
} else {
elt.classList.remove('user-status-camera');
elt.classList.remove('user-status-microphone');
}
let screenshare = userinfo.streams['screenshare'];
if(screenshare && screenshare['video'])
elt.classList.add('user-status-screenshare');
else
elt.classList.remove('user-status-screenshare');
}
/**