mirror of
				https://github.com/ossrs/srs.git
				synced 2025-03-09 15:49:59 +00:00 
			
		
		
		
	Support api_port to specify the WebRTC API port. v4.0.224
This commit is contained in:
		
							parent
							
								
									e6ab5db113
								
							
						
					
					
						commit
						db3ceb445b
					
				
					 4 changed files with 7 additions and 4 deletions
				
			
		|  | @ -63,8 +63,8 @@ | |||
|         if (true) { | ||||
|             const prefix = `players/?schema=${window.location.protocol.replace(':', '')}`; | ||||
|             const httpPort = window.location.port || (window.location.protocol === 'http:' ? 80 : 443); | ||||
|             // If not 8080, user should proxy to the default port. | ||||
|             const query = parseInt(window.location.port) === 8080 ? '' : `&port=${httpPort}`; | ||||
|             // If not 8080, user should proxy both stream and API to the default port. | ||||
|             const query = parseInt(window.location.port) === 8080 ? '' : `&port=${httpPort}&api_port=${httpPort}`; | ||||
|             document.getElementById("enPlayer").setAttribute('href', `${prefix}${query}`); | ||||
|             document.getElementById("cnPlayer").setAttribute('href', `${prefix}${query}`); | ||||
|         } | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue