ps解析添加外部缓存

This commit is contained in:
xiongziliang
2020-08-08 12:13:35 +08:00
parent 30bbbd2e2f
commit e7e8969b4f
2 changed files with 22 additions and 6 deletions

View File

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