尝试添加rtp类型自动判断逻辑

This commit is contained in:
xiongziliang
2020-03-04 22:25:00 +08:00
parent f384f5e025
commit c77f82f02c
8 changed files with 36 additions and 15 deletions

View File

@@ -38,11 +38,12 @@ public:
RtpDecoder();
virtual ~RtpDecoder();
protected:
void decodeRtp(const void *data, int bytes,const char *type_name);
void decodeRtp(const void *data, int bytes,const string &type_name);
virtual void onRtpDecode(const void *packet, int bytes, uint32_t timestamp, int flags) = 0;
private:
void *_rtp_decoder = nullptr;
BufferRaw::Ptr _buffer;
string _rtp_type;
};
}//namespace mediakit