mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2026-06-28 05:29:24 +08:00
ps解析添加外部缓存
This commit is contained in:
@@ -18,11 +18,12 @@
|
||||
#include "Decoder.h"
|
||||
#include "Common/Device.h"
|
||||
#include "Common/Stamp.h"
|
||||
#include "Http/HttpRequestSplitter.h"
|
||||
using namespace mediakit;
|
||||
|
||||
namespace mediakit{
|
||||
|
||||
class RtpProcess : public RtpReceiver , public RtpDecoder, public SockInfo, public MediaSinkInterface, public std::enable_shared_from_this<RtpProcess>{
|
||||
class RtpProcess : public HttpRequestSplitter, public RtpReceiver , public RtpDecoder, public SockInfo, public MediaSinkInterface, public std::enable_shared_from_this<RtpProcess>{
|
||||
public:
|
||||
typedef std::shared_ptr<RtpProcess> Ptr;
|
||||
RtpProcess(const string &stream_id);
|
||||
@@ -71,6 +72,9 @@ protected:
|
||||
void addTrack(const Track::Ptr & track) override;
|
||||
void resetTracks() override {};
|
||||
|
||||
const char *onSearchPacketTail(const char *data,int len) override;
|
||||
int64_t onRecvHeader(const char *data,uint64_t len) override { return 0; };
|
||||
|
||||
private:
|
||||
void emitOnPublish();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user