mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2026-06-30 23:02:24 +08:00
新增rtp udp收流增加丢包率
This commit is contained in:
@@ -13,6 +13,7 @@
|
||||
|
||||
#if defined(ENABLE_RTPPROXY)
|
||||
#include "ProcessInterface.h"
|
||||
#include "Rtcp/RtcpContext.h"
|
||||
#include "Common/MultiMediaSourceMuxer.h"
|
||||
|
||||
namespace mediakit {
|
||||
@@ -66,6 +67,8 @@ public:
|
||||
int getTotalReaderCount();
|
||||
void setListener(const std::weak_ptr<MediaSourceEvent> &listener);
|
||||
|
||||
void setHelper(const std::weak_ptr<RtcpContext> &help);
|
||||
int getLossRate(MediaSource &sender, TrackType type) override;
|
||||
protected:
|
||||
bool inputFrame(const Frame::Ptr &frame) override;
|
||||
bool addTrack(const Track::Ptr & track) override;
|
||||
@@ -99,6 +102,8 @@ private:
|
||||
toolkit::Ticker _last_check_alive;
|
||||
std::recursive_mutex _func_mtx;
|
||||
std::deque<std::function<void()> > _cached_func;
|
||||
|
||||
std::weak_ptr<RtcpContext> _help;
|
||||
};
|
||||
|
||||
}//namespace mediakit
|
||||
|
||||
Reference in New Issue
Block a user