完成PlayerProxy改造

This commit is contained in:
xiongziliang
2018-10-26 17:14:39 +08:00
parent f26076635d
commit 097cf273d5
7 changed files with 89 additions and 81 deletions

View File

@@ -28,10 +28,11 @@
#define ZLMEDIAKIT_RTMPMUXER_H
#include "RtmpMetedata.h"
#include "Player/Frame.h"
namespace mediakit{
class RtmpMuxer{
class RtmpMuxer : public FrameRingWriterInterface{
public:
typedef std::shared_ptr<RtmpMuxer> Ptr;
@@ -64,7 +65,7 @@ public:
* 写入帧数据然后打包rtmp
* @param frame 帧数据
*/
void inputFrame(const Frame::Ptr &frame) ;
void inputFrame(const Frame::Ptr &frame) override ;
/**
* 也可以在外部打包好rtmp然后再写入