mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2026-08-05 08:02:35 +08:00
for webapi startsendrtp can send raw rtp
This commit is contained in:
@@ -34,6 +34,12 @@ void RtpCachePS::onRTP(Buffer::Ptr buffer) {
|
||||
input(stamp, std::move(buffer));
|
||||
}
|
||||
|
||||
void RtpCacheRaw::onRTP(Buffer::Ptr buffer) {
|
||||
auto rtp = std::static_pointer_cast<RtpPacket>(buffer);
|
||||
auto stamp = rtp->getStampMS();
|
||||
input(stamp, std::move(buffer));
|
||||
}
|
||||
|
||||
}//namespace mediakit
|
||||
|
||||
#endif//#if defined(ENABLE_RTPPROXY)
|
||||
Reference in New Issue
Block a user