mirror of
				https://github.com/pierre42100/ComunicWeb
				synced 2025-11-04 12:14:12 +00:00 
			
		
		
		
	Highlight videos where the person is talking too
This commit is contained in:
		@@ -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")
 | 
			
		||||
			}
 | 
			
		||||
		})
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user