精简代码,改善代码结构

This commit is contained in:
xiongziliang
2020-09-06 17:52:33 +08:00
parent eca9236955
commit 636068b2b8
3 changed files with 14 additions and 85 deletions

View File

@@ -131,7 +131,7 @@ public:
vector<Track::Ptr> getTracks(bool ready = true) const override;
// 设置监听者
virtual void setListener(const std::weak_ptr<MediaSourceEvent> &listener);
void setListener(const std::weak_ptr<MediaSourceEvent> &listener);
// 获取监听者
const std::weak_ptr<MediaSourceEvent>& getListener() const;
@@ -152,9 +152,9 @@ public:
// 该流无人观看
void onNoneReader();
// 开启或关闭录制
virtual bool setupRecord(Recorder::type type, bool start, const string &custom_path);
bool setupRecord(Recorder::type type, bool start, const string &custom_path);
// 获取录制状态
virtual bool isRecording(Recorder::type type);
bool isRecording(Recorder::type type);
// 同步查找流
static Ptr find(const string &schema, const string &vhost, const string &app, const string &id);