mirror of
				https://github.com/ossrs/srs.git
				synced 2025-03-09 15:49:59 +00:00 
			
		
		
		
	SquashSRS4: Update benchmark data.
This commit is contained in:
		
							parent
							
								
									8895d36746
								
							
						
					
					
						commit
						eb339432c4
					
				
					 8 changed files with 25 additions and 16 deletions
				
			
		|  | @ -144,7 +144,7 @@ function SrsRtcPublisherAsync() { | |||
| 
 | ||||
|             return { | ||||
|                 apiUrl: apiUrl, streamUrl: streamUrl, schema: schema, urlObject: urlObject, port: port, | ||||
|                 tid: new Date().getTime().toString(16) | ||||
|                 tid: Number(parseInt(new Date().getTime()*Math.random()*100)).toString(16).substr(0, 7) | ||||
|             }; | ||||
|         }, | ||||
|         parse: function (url) { | ||||
|  | @ -361,7 +361,7 @@ function SrsRtcPlayerAsync() { | |||
| 
 | ||||
|             return { | ||||
|                 apiUrl: apiUrl, streamUrl: streamUrl, schema: schema, urlObject: urlObject, port: port, | ||||
|                 tid: new Date().getTime().toString(16) | ||||
|                 tid: Number(parseInt(new Date().getTime()*Math.random()*100)).toString(16).substr(0, 7) | ||||
|             }; | ||||
|         }, | ||||
|         parse: function (url) { | ||||
|  |  | |||
|  | @ -335,7 +335,7 @@ | |||
|         $("#btn_publish").click(on_user_publish); | ||||
| 
 | ||||
|         // for publish, we use randome stream name. | ||||
|         $("#txt_url").val($("#txt_url").val() + "." + Number(new Date().getTime() + parseInt(String(Math.random() * 10000000000))).toString(16)); | ||||
|         $("#txt_url").val($("#txt_url").val() + "." + Number(parseInt(new Date().getTime()*Math.random()*100)).toString(16).substr(0, 7)); | ||||
| 
 | ||||
|         // start the publisher. | ||||
|         srs_publisher = new SrsPublisher("local_publisher", 430, 185); | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue