基本完成hls相关的主要事件

This commit is contained in:
xiongziliang
2019-12-29 10:49:04 +08:00
parent 1afacdcff8
commit 54736859d4
13 changed files with 142 additions and 74 deletions

View File

@@ -51,7 +51,13 @@ public:
* @param app 应用名
* @param stream_id 流id
*/
void setMediaInfo(const string &vhost, const string &app, const string &stream_id);
void setMediaSource(const string &vhost, const string &app, const string &stream_id);
/**
* 获取MediaSource
* @return
*/
MediaSource::Ptr getMediaSource() const;
protected:
string onOpenSegment(int index) override ;
void onDelSegment(int index) override;