mirror of
				https://github.com/pion/webrtc.git
				synced 2025-10-31 10:46:39 +08:00 
			
		
		
		
	
		
			
				
	
	
		
			14 lines
		
	
	
		
			639 B
		
	
	
	
		
			HTML
		
	
	
	
	
	
			
		
		
	
	
			14 lines
		
	
	
		
			639 B
		
	
	
	
		
			HTML
		
	
	
	
	
	
| <video id="video1" width="160" height="120" autoplay muted></video> <br />
 | |
| 
 | |
| 
 | |
| <button class="createSessionButton" onclick="window.createSession(true)"> Publish a Broadcast </button>
 | |
| <button class="createSessionButton" onclick="window.createSession(false)"> Join a Broadcast </button>
 | |
| 
 | |
| <div id="signalingContainer" style="display: none">
 | |
|   Browser base64 Session Description <textarea id="localSessionDescription" readonly="true"></textarea> <br />
 | |
|   Golang base64 Session Description: <textarea id="remoteSessionDescription"></textarea> <br/>
 | |
|   <button onclick="window.startSession()"> Start Session </button>
 | |
| </div>
 | |
| 
 | |
| <div id="logs"></div>
 | 
