mirror of
				https://github.com/pierre42100/ComunicWeb
				synced 2025-11-04 04:04:20 +00:00 
			
		
		
		
	Do not proxy streaming images by default
This commit is contained in:
		@@ -232,7 +232,7 @@ class CallWindow extends CustomEvents {
 | 
				
			|||||||
					text: "Toggle blur background",
 | 
										text: "Toggle blur background",
 | 
				
			||||||
					needVideo: true,
 | 
										needVideo: true,
 | 
				
			||||||
					onclick: () => {
 | 
										onclick: () => {
 | 
				
			||||||
						this.blurBackground = !this.blurBackground;
 | 
											this.toggleBlurBackground()
 | 
				
			||||||
					}
 | 
										}
 | 
				
			||||||
				},
 | 
									},
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@@ -657,6 +657,17 @@ class CallWindow extends CustomEvents {
 | 
				
			|||||||
		};
 | 
							};
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						/**
 | 
				
			||||||
 | 
						 * Toggle blur background mode
 | 
				
			||||||
 | 
						 */
 | 
				
			||||||
 | 
						toggleBlurBackground() {
 | 
				
			||||||
 | 
							this.blurBackground = !this.blurBackground;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
							// Check if background blur network is loaded
 | 
				
			||||||
 | 
							if(!this.backgroundDetectionNetwork)
 | 
				
			||||||
 | 
								notify("Please stop and start streaming again to apply modification!");
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	/**
 | 
						/**
 | 
				
			||||||
	 * Toggle stream state
 | 
						 * Toggle stream state
 | 
				
			||||||
	 * 
 | 
						 * 
 | 
				
			||||||
@@ -936,7 +947,7 @@ class CallWindow extends CustomEvents {
 | 
				
			|||||||
			return
 | 
								return
 | 
				
			||||||
		
 | 
							
 | 
				
			||||||
		// If streaming video stream, allow to blur background
 | 
							// If streaming video stream, allow to blur background
 | 
				
			||||||
		if(includeVideo)
 | 
							if(includeVideo && this.blurBackground)
 | 
				
			||||||
		{
 | 
							{
 | 
				
			||||||
			// Create capture
 | 
								// Create capture
 | 
				
			||||||
			const videoTarget = document.createElement("video");
 | 
								const videoTarget = document.createElement("video");
 | 
				
			||||||
@@ -1005,7 +1016,7 @@ class CallWindow extends CustomEvents {
 | 
				
			|||||||
			})();
 | 
								})();
 | 
				
			||||||
			
 | 
								
 | 
				
			||||||
			
 | 
								
 | 
				
			||||||
			stream = canvasTarget.captureStream();
 | 
								stream = canvasTarget.captureStream(24);
 | 
				
			||||||
			stream.addTrack(this.mainStream.getAudioTracks()[0]);
 | 
								stream.addTrack(this.mainStream.getAudioTracks()[0]);
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user