when start send rtp wait key rtp previous drop (#1789)

This commit is contained in:
xiongguangjie
2022-07-09 22:30:43 +08:00
committed by GitHub
parent 4f7d3d820f
commit 14da5ab2d8
8 changed files with 39 additions and 23 deletions

View File

@@ -27,7 +27,7 @@ public:
protected:
//rtp打包后回调
virtual void onRTP(toolkit::Buffer::Ptr rtp) = 0;
virtual void onRTP(toolkit::Buffer::Ptr rtp,bool is_key = false) = 0;
protected:
void onWrite(std::shared_ptr<toolkit::Buffer> buffer, uint32_t stamp, bool key_pos) override;