mirror of
https://github.com/pierre42100/ComunicWeb
synced 2024-11-25 21:39:21 +00:00
Highlight videos where the person is talking too
This commit is contained in:
parent
efb664beb7
commit
7453018a5c
@ -130,6 +130,14 @@
|
||||
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 {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
|
@ -813,9 +813,15 @@ class CallWindow extends CustomEvents {
|
||||
const avg = sum/count;
|
||||
|
||||
if(avg > 50)
|
||||
{
|
||||
memberEl.classList.add("talking")
|
||||
videoEl.classList.add("talking")
|
||||
}
|
||||
else
|
||||
{
|
||||
memberEl.classList.remove("talking");
|
||||
videoEl.classList.remove("talking")
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@ -829,6 +835,7 @@ class CallWindow extends CustomEvents {
|
||||
analyzer_node.disconnect();
|
||||
|
||||
memberEl.classList.remove("talking")
|
||||
videoEl.classList.remove("talking")
|
||||
}
|
||||
})
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user