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

RTC: Refactor API, use shared pkt for consumer

This commit is contained in:
winlin 2020-05-15 08:11:03 +08:00
parent 31de2c71d0
commit c7b88e08e9
5 changed files with 9 additions and 15 deletions

View file

@ -150,6 +150,7 @@ public:
// Get and set the publisher, passed to consumer to process requests such as PLI.
SrsRtcPublisher* rtc_publisher();
void set_rtc_publisher(SrsRtcPublisher* v);
// Consume the shared RTP packet, user must free it.
srs_error_t on_rtp(SrsRtpPacket2* pkt);
virtual srs_error_t on_audio_imp(SrsSharedPtrMessage* audio);
// When got RTC audio message, which is encoded in opus.