mirror of
				https://github.com/pierre42100/ComunicWeb
				synced 2025-11-04 12:14:12 +00:00 
			
		
		
		
	Add a little delay before marking peer as ready
This commit is contained in:
		@@ -863,9 +863,14 @@ class CallWindow extends CustomEvents {
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
		this.mainPeer.on("connect", () =>  {
 | 
							this.mainPeer.on("connect", () =>  {
 | 
				
			||||||
			console.info("Connected to remote peer!")
 | 
								console.info("Connected to remote peer!")
 | 
				
			||||||
			ws("calls/mark_ready", {
 | 
								setTimeout(() => {
 | 
				
			||||||
				callID: this.callID
 | 
									// Add a little delay before notifying other peers in order to let the tracks be received by the proxy
 | 
				
			||||||
			})
 | 
									if(this.mainPeer && !this.mainPeer.destroyed)
 | 
				
			||||||
 | 
										ws("calls/mark_ready", {
 | 
				
			||||||
 | 
											callID: this.callID
 | 
				
			||||||
 | 
										})
 | 
				
			||||||
 | 
								}, 2000);
 | 
				
			||||||
 | 
								
 | 
				
			||||||
		})
 | 
							})
 | 
				
			||||||
 | 
					
 | 
				
			||||||
		this.mainPeer.on("message", message => {
 | 
							this.mainPeer.on("message", message => {
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user