From 0839ddb6810011c4cb0b6d6055c5354fc64f1ca6 Mon Sep 17 00:00:00 2001 From: xiongziliang <771730766@qq.com> Date: Thu, 25 Oct 2018 16:49:43 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Common/MultiMediaSourceMuxer.h | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/Common/MultiMediaSourceMuxer.h b/src/Common/MultiMediaSourceMuxer.h index 1c443739..31bc28d1 100644 --- a/src/Common/MultiMediaSourceMuxer.h +++ b/src/Common/MultiMediaSourceMuxer.h @@ -59,6 +59,15 @@ public: _rtmp->inputFrame(frame); _rtsp->inputFrame(frame); } + + /** + * 设置事件监听器 + * @param listener + */ + void setListener(const std::weak_ptr &listener){ + _rtmp->setListener(listener); + _rtsp->setListener(listener); + } private: RtmpMediaSourceMuxer::Ptr _rtmp; RtspMediaSourceMuxer::Ptr _rtsp;