Highlight videos where the person is talking too

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

View File

@ -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")
}
})