perfectnogation #20
			
				
			
		
		
		
	| 
						 | 
				
			
			@ -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;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue