mirror of
				https://github.com/pierre42100/ComunicWeb
				synced 2025-11-04 04:04:20 +00:00 
			
		
		
		
	Highlight videos where the person is talking too
This commit is contained in:
		@@ -130,6 +130,14 @@
 | 
				
			|||||||
	flex-direction: column;
 | 
						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 {
 | 
					.call-window .videos-area .video video {
 | 
				
			||||||
	width: 100%;
 | 
						width: 100%;
 | 
				
			||||||
	height: 100%;
 | 
						height: 100%;
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -813,9 +813,15 @@ class CallWindow extends CustomEvents {
 | 
				
			|||||||
			const avg = sum/count;
 | 
								const avg = sum/count;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
			if(avg > 50)
 | 
								if(avg > 50)
 | 
				
			||||||
 | 
								{
 | 
				
			||||||
				memberEl.classList.add("talking")
 | 
									memberEl.classList.add("talking")
 | 
				
			||||||
 | 
									videoEl.classList.add("talking")
 | 
				
			||||||
 | 
								}
 | 
				
			||||||
			else
 | 
								else
 | 
				
			||||||
 | 
								{
 | 
				
			||||||
				memberEl.classList.remove("talking");
 | 
									memberEl.classList.remove("talking");
 | 
				
			||||||
 | 
									videoEl.classList.remove("talking")
 | 
				
			||||||
 | 
								}
 | 
				
			||||||
				
 | 
									
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@@ -829,6 +835,7 @@ class CallWindow extends CustomEvents {
 | 
				
			|||||||
				analyzer_node.disconnect();
 | 
									analyzer_node.disconnect();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
				memberEl.classList.remove("talking")
 | 
									memberEl.classList.remove("talking")
 | 
				
			||||||
 | 
									videoEl.classList.remove("talking")
 | 
				
			||||||
			}
 | 
								}
 | 
				
			||||||
		})
 | 
							})
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user