mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2026-06-21 07:44:41 +08:00
Header refactor (#2115)
* 优化MultiMediaSourceMuxer头文件包含 * 将MediaSinkDelegate和Demux移到MediaSink中 * MediaSource头文件重构, 独立出PacketCache.h 精简Frame和Track的头文件 * Rtmp头文件重构 * Rtsp头文件重构 * webrtc头文件重构 * 规范.h头文件包含,并将其移到.cpp中: - 尽量不包含Common\config.h - Util\File.h - Rtsp/RtspPlayer.h - Rtmp/RtmpPlayer.h * 删除多余的Stamp.h和Base64包含
This commit is contained in:
@@ -14,11 +14,9 @@
|
||||
#if defined(ENABLE_RTPPROXY)
|
||||
|
||||
#include "Common/MediaSink.h"
|
||||
#include "Common/Stamp.h"
|
||||
#include "Extension/CommonRtp.h"
|
||||
|
||||
namespace mediakit {
|
||||
|
||||
class RtpCodec;
|
||||
class RawEncoderImp : public MediaSinkInterface {
|
||||
public:
|
||||
RawEncoderImp(uint32_t ssrc, uint8_t payload_type = 96, bool send_audio = true);
|
||||
@@ -44,13 +42,13 @@ protected:
|
||||
virtual void onRTP(toolkit::Buffer::Ptr rtp, bool is_key = false) = 0;
|
||||
|
||||
private:
|
||||
RtpCodec::Ptr createRtpEncoder(const Track::Ptr &track);
|
||||
std::shared_ptr<RtpCodec> createRtpEncoder(const Track::Ptr &track);
|
||||
|
||||
private:
|
||||
bool _send_audio;
|
||||
uint8_t _payload_type;
|
||||
uint32_t _ssrc;
|
||||
RtpCodec::Ptr _rtp_encoder;
|
||||
std::shared_ptr<RtpCodec> _rtp_encoder;
|
||||
};
|
||||
|
||||
} // namespace mediakit
|
||||
|
||||
Reference in New Issue
Block a user