添加接口

This commit is contained in:
xiongziliang 2018-10-25 16:49:43 +08:00
parent 1ff490d119
commit 0839ddb681

View File

@ -59,6 +59,15 @@ public:
_rtmp->inputFrame(frame);
_rtsp->inputFrame(frame);
}
/**
*
* @param listener
*/
void setListener(const std::weak_ptr<MediaSourceEvent> &listener){
_rtmp->setListener(listener);
_rtsp->setListener(listener);
}
private:
RtmpMediaSourceMuxer::Ptr _rtmp;
RtspMediaSourceMuxer::Ptr _rtsp;