perfectnogation #20

Merged
saqut merged 6 commits from perfectnogation into stable 2025-07-14 23:25:51 +03:00
1 changed files with 5 additions and 5 deletions
Showing only changes of commit 965ca07853 - Show all commits

View File

@ -71,7 +71,7 @@ function templateVideo(name, stream,infinitedMute)
<video autoplay playsinline muted data-name="${name}">
</video>
<div class="tool-container">
<!--div class="tool-container">
<div class="tools">
<button>
<i class="material-icons">home</i>
@ -80,7 +80,7 @@ function templateVideo(name, stream,infinitedMute)
<i class="material-icons">close</i>
</button>
</div>
</div>
</div--->
</div>
`,"text/html");
@ -108,9 +108,9 @@ function addVideoList(name, stream, peer, infinitedMute)
function removeVideoList(name)
{
if(videoContainer.querySelector(`[data-name="${name}"]`))
if(videoContainer.querySelector(`[data-user="${name}"]`))
{
let k = videoContainer.querySelector(`[data-name="${name}"]`);
let k = videoContainer.querySelector(`[data-user="${name}"]`);
if(k.dataset.user == activeVideo?.dataset.user || !activeVideo)
{
activePeer = null;
@ -258,7 +258,7 @@ function IncomingPeer(peer,activeConnect)
*/
function OutgoingPeer(peer)
{
removeVideoList(peer.streamY, peer);
removeVideoList(peer.socketId, peer);
}
let relative;