for webapi startsendrtp can send raw rtp

This commit is contained in:
xgj
2022-04-01 18:28:09 +08:00
parent d5b8613858
commit 61625f458f
11 changed files with 205 additions and 18 deletions

View File

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