mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
For RTC publisher, support black-hole
This commit is contained in:
parent
e4329fd1a0
commit
7692e589ed
5 changed files with 146 additions and 17 deletions
|
@ -305,6 +305,7 @@ public:
|
|||
|
||||
class SrsRtcSession
|
||||
{
|
||||
friend class SrsDtlsSession;
|
||||
friend class SrsRtcSenderThread;
|
||||
friend class SrsRtcPublisher;
|
||||
private:
|
||||
|
@ -327,6 +328,10 @@ private:
|
|||
bool encrypt;
|
||||
// The timeout of session, keep alive by STUN ping pong.
|
||||
srs_utime_t sessionStunTimeout;
|
||||
private:
|
||||
bool blackhole;
|
||||
sockaddr_in* blackhole_addr;
|
||||
srs_netfd_t blackhole_stfd;
|
||||
public:
|
||||
SrsRequest* req;
|
||||
SrsSource* source;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue