Skip to content

Commit

Permalink
WebRTC: Support TCP network.
Browse files Browse the repository at this point in the history
  • Loading branch information
lipeng19811218 authored and winlinvip committed Sep 4, 2022
1 parent 625069a commit 1f4441d
Show file tree
Hide file tree
Showing 5 changed files with 563 additions and 4 deletions.
5 changes: 5 additions & 0 deletions trunk/src/app/srs_app_rtc_conn.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2236,6 +2236,11 @@ SrsRtcUdpNetwork* SrsRtcConnection::udp()
return networks_->udp();
}

SrsRtcTcpNetwork* SrsRtcConnection::tcp()
{
return networks_->tcp();
}

srs_error_t SrsRtcConnection::send_rtcp(char *data, int nb_data)
{
srs_error_t err = srs_success;
Expand Down
2 changes: 2 additions & 0 deletions trunk/src/app/srs_app_rtc_conn.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ class SrsEphemeralDelta;
class SrsRtcNetworks;
class SrsRtcUdpNetwork;
class ISrsRtcNetwork;
class SrsRtcTcpNetwork;

const uint8_t kSR = 200;
const uint8_t kRR = 201;
Expand Down Expand Up @@ -518,6 +519,7 @@ class SrsRtcConnection : public ISrsResource, public ISrsDisposingHandler, publi
void alive();
public:
SrsRtcUdpNetwork* udp();
SrsRtcTcpNetwork* tcp();
public:
// send rtcp
srs_error_t send_rtcp(char *data, int nb_data);
Expand Down
Loading

0 comments on commit 1f4441d

Please # to comment.