Highlight videos where the person is talking too

This commit is contained in:
Pierre HUBERT 2021-01-23 21:05:33 +01:00
parent efb664beb7
commit 7453018a5c
2 changed files with 15 additions and 0 deletions

View File

@ -130,6 +130,14 @@
flex-direction: column; flex-direction: column;
} }
.call-window .videos-area .video video {
border: 2px transparent solid;
}
.call-window .videos-area .video video.talking {
border: 2px green solid;
}
.call-window .videos-area .video video { .call-window .videos-area .video video {
width: 100%; width: 100%;
height: 100%; height: 100%;

View File

@ -813,9 +813,15 @@ class CallWindow extends CustomEvents {
const avg = sum/count; const avg = sum/count;
if(avg > 50) if(avg > 50)
{
memberEl.classList.add("talking") memberEl.classList.add("talking")
videoEl.classList.add("talking")
}
else else
{
memberEl.classList.remove("talking"); memberEl.classList.remove("talking");
videoEl.classList.remove("talking")
}
} }
@ -829,6 +835,7 @@ class CallWindow extends CustomEvents {
analyzer_node.disconnect(); analyzer_node.disconnect();
memberEl.classList.remove("talking") memberEl.classList.remove("talking")
videoEl.classList.remove("talking")
} }
}) })