mirror of
				https://github.com/pierre42100/ComunicWeb
				synced 2025-11-04 04:04:20 +00:00 
			
		
		
		
	Can switch from screen to webcam
This commit is contained in:
		@@ -169,7 +169,7 @@ class CallWindow extends CustomEvents {
 | 
			
		||||
			// Sub-menu entries
 | 
			
		||||
			const menuEntries = [
 | 
			
		||||
 | 
			
		||||
				//Full screen button
 | 
			
		||||
				// Full screen button
 | 
			
		||||
				{
 | 
			
		||||
					icon: "fa-expand",
 | 
			
		||||
					text: "Toggle fullscreen",
 | 
			
		||||
@@ -179,6 +179,27 @@ class CallWindow extends CustomEvents {
 | 
			
		||||
					}
 | 
			
		||||
				},
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
				// Share screen button
 | 
			
		||||
				{
 | 
			
		||||
					icon: "fa-tv",
 | 
			
		||||
					text: "Share screen",
 | 
			
		||||
					needVideo: true,
 | 
			
		||||
					onclick: () => {
 | 
			
		||||
						this.startStreaming(true, true)
 | 
			
		||||
					}
 | 
			
		||||
				},
 | 
			
		||||
 | 
			
		||||
				// Share camera button
 | 
			
		||||
				{
 | 
			
		||||
					icon: "fa-video-camera",
 | 
			
		||||
					text: "Share webcam",
 | 
			
		||||
					needVideo: true,
 | 
			
		||||
					onclick: () => {
 | 
			
		||||
						this.startStreaming(true, false)
 | 
			
		||||
					}
 | 
			
		||||
				},
 | 
			
		||||
 | 
			
		||||
			]
 | 
			
		||||
 | 
			
		||||
			//Add buttons
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user