精简复用rtp encoder创建相关代码

This commit is contained in:
ziyue
2022-08-05 17:36:51 +08:00
parent d3ac296228
commit f85de2e108
5 changed files with 98 additions and 116 deletions

View File

@@ -50,7 +50,6 @@ protected:
void onRTP(toolkit::Buffer::Ptr rtp,bool is_key = false) override;
};
class RtpCacheRaw : public RtpCache, public RawEncoderImp{
public:
RtpCacheRaw(onFlushed cb, uint32_t ssrc, uint8_t payload_type = 96, bool sendAudio = true) : RtpCache(std::move(cb)), RawEncoderImp(ssrc, payload_type,sendAudio) {};