新增媒体流flush机制:#1996

This commit is contained in:
ziyue
2022-10-16 19:49:56 +08:00
parent 80eef693c6
commit ac1abb34da
44 changed files with 287 additions and 124 deletions

View File

@@ -26,7 +26,7 @@ class GB28181Process : public ProcessInterface {
public:
typedef std::shared_ptr<GB28181Process> Ptr;
GB28181Process(const MediaInfo &media_info, MediaSinkInterface *sink);
~GB28181Process() override;
~GB28181Process() override = default;
/**
* 输入rtp
@@ -36,6 +36,11 @@ public:
*/
bool inputRtp(bool, const char *data, size_t data_len) override;
/**
* 刷新输出所有缓存
*/
void flush() override;
protected:
void onRtpSorted(RtpPacket::Ptr rtp);