mirror of
				https://github.com/ossrs/srs.git
				synced 2025-03-09 15:49:59 +00:00 
			
		
		
		
	Tools: Update one to one demo
This commit is contained in:
		
							parent
							
								
									fc23b9e5f5
								
							
						
					
					
						commit
						74043b4153
					
				
					 5 changed files with 73 additions and 21 deletions
				
			
		|  | @ -57,7 +57,7 @@ function SrsRtcPublisherAsync() { | |||
|         self.pc.addTransceiver("video", {direction: "sendonly"}); | ||||
| 
 | ||||
|         var stream = await navigator.mediaDevices.getUserMedia( | ||||
|             {audio: true, video: {height: {max: 320}}} | ||||
|             {audio: true, video: {width: {max: 320}}} | ||||
|         ); | ||||
|         // @see https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnection/addStream#Migrating_to_addTrack
 | ||||
|         stream.getTracks().forEach(function (track) { | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue