1
0
Fork 0
mirror of https://github.com/ossrs/srs.git synced 2025-03-09 15:49:59 +00:00

RTC: Support hijack the plaintext RTP packet

This commit is contained in:
winlin 2020-05-22 18:44:32 +08:00
parent 2bd0e1ce43
commit 64eb22b95d
2 changed files with 16 additions and 6 deletions

View file

@ -399,6 +399,8 @@ public:
public:
// When start publisher by RTC.
virtual srs_error_t on_start_publish(SrsRtcSession* session, SrsRtcPublisher* publisher, SrsRequest* req) = 0;
// When got RTP plaintext packet.
virtual srs_error_t on_rtp_packet(SrsRtcSession* session, SrsRtcPublisher* publisher, SrsRequest* req, SrsRtpPacket2* pkt) = 0;
};
extern ISrsRtcHijacker* _srs_rtc_hijacker;