1
0
Fork 0
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:
winlin 2020-04-27 09:35:50 +08:00
parent e4329fd1a0
commit 7692e589ed
5 changed files with 146 additions and 17 deletions

View file

@ -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;