mirror of
				https://github.com/ossrs/srs.git
				synced 2025-03-09 15:49:59 +00:00 
			
		
		
		
	RTC: Support statistic for HTTP-API, HTTP-Callback and Security (#2483)
* commit message for your changes. Lines starting * Update srs_app_rtc_api.cpp * add SrsRtcConnPlay and SrsRtcConnPublish, in enum SrsRtmpConnType * Update srs_rtmp_stack.cpp * Update srs_app_rtc_conn.cpp * Update srs_app_rtc_api.cpp * update utest * Update srs_utest_app.cpp
This commit is contained in:
		
							parent
							
								
									20931ddbb1
								
							
						
					
					
						commit
						0efd7b1bbc
					
				
					 9 changed files with 170 additions and 51 deletions
				
			
		| 
						 | 
				
			
			@ -404,7 +404,7 @@ private:
 | 
			
		|||
//
 | 
			
		||||
// For performance, we use non-public from resource,
 | 
			
		||||
// see https://stackoverflow.com/questions/3747066/c-cannot-convert-from-base-a-to-derived-type-b-via-virtual-base-a
 | 
			
		||||
class SrsRtcConnection : public ISrsResource, public ISrsDisposingHandler
 | 
			
		||||
class SrsRtcConnection : public ISrsResource, public ISrsDisposingHandler, public ISrsExpire
 | 
			
		||||
{
 | 
			
		||||
    friend class SrsSecurityTransport;
 | 
			
		||||
    friend class SrsRtcPlayStream;
 | 
			
		||||
| 
						 | 
				
			
			@ -486,6 +486,9 @@ public:
 | 
			
		|||
public:
 | 
			
		||||
    virtual const SrsContextId& get_id();
 | 
			
		||||
    virtual std::string desc();
 | 
			
		||||
// Interface ISrsExpire.
 | 
			
		||||
public:
 | 
			
		||||
    virtual void expire();
 | 
			
		||||
public:
 | 
			
		||||
    void switch_to_context();
 | 
			
		||||
    const SrsContextId& context_id();
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue