mirror of
				https://github.com/ossrs/srs.git
				synced 2025-03-09 15:49:59 +00:00 
			
		
		
		
	Squash: Fix padding packets for RTMP2RTC
This commit is contained in:
		
							parent
							
								
									c8a1e0f3da
								
							
						
					
					
						commit
						8f91a90f28
					
				
					 6 changed files with 18 additions and 8 deletions
				
			
		|  | @ -118,8 +118,11 @@ srs_error_t SrsGoApiRtcPlay::do_serve_http(ISrsHttpResponseWriter* w, ISrsHttpMe | |||
|         srs_discovery_tc_url(tcUrl, schema, host, vhost, app, stream_name, port, param); | ||||
|     } | ||||
| 
 | ||||
|     // For client to specifies the EIP of server.
 | ||||
|     // For client to specifies the candidate(EIP) of server.
 | ||||
|     string eip = r->query_get("eip"); | ||||
|     if (eip.empty()) { | ||||
|         eip = r->query_get("candidate"); | ||||
|     } | ||||
|     string codec = r->query_get("codec"); | ||||
|     // For client to specifies whether encrypt by SRTP.
 | ||||
|     string srtp = r->query_get("encrypt"); | ||||
|  | @ -338,8 +341,11 @@ srs_error_t SrsGoApiRtcPublish::do_serve_http(ISrsHttpResponseWriter* w, ISrsHtt | |||
|         srs_discovery_tc_url(tcUrl, schema, host, vhost, app, stream_name, port, param); | ||||
|     } | ||||
| 
 | ||||
|     // For client to specifies the EIP of server.
 | ||||
|     // For client to specifies the candidate(EIP) of server.
 | ||||
|     string eip = r->query_get("eip"); | ||||
|     if (eip.empty()) { | ||||
|         eip = r->query_get("candidate"); | ||||
|     } | ||||
|     string codec = r->query_get("codec"); | ||||
| 
 | ||||
|     srs_trace("RTC publish %s, api=%s, tid=%s, clientip=%s, app=%s, stream=%s, offer=%dB, eip=%s, codec=%s", | ||||
|  |  | |||
|  | @ -747,6 +747,9 @@ srs_error_t SrsSdp::parse(const std::string& sdp_str) | |||
|             line.erase(line.size()-1, 1); | ||||
|         } | ||||
| 
 | ||||
|         // Strip the space of line, for pion WebRTC client.
 | ||||
|         line = srs_string_trim_end(line, " "); | ||||
| 
 | ||||
|         if ((err = parse_line(line)) != srs_success) { | ||||
|             return srs_error_wrap(err, "parse sdp line failed"); | ||||
|         } | ||||
|  |  | |||
|  | @ -9,6 +9,6 @@ | |||
| 
 | ||||
| #define VERSION_MAJOR       4 | ||||
| #define VERSION_MINOR       0 | ||||
| #define VERSION_REVISION    139 | ||||
| #define VERSION_REVISION    140 | ||||
| 
 | ||||
| #endif | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue