实现hls按需拉流

This commit is contained in:
xiongziliang
2019-12-29 11:52:02 +08:00
parent 54736859d4
commit 4b4c4e0cec
10 changed files with 69 additions and 56 deletions

View File

@@ -44,10 +44,7 @@ class HlsMediaSource : public MediaSource {
public:
friend class HlsCookieData;
typedef std::shared_ptr<HlsMediaSource> Ptr;
HlsMediaSource(const string &vhost,
const string &app,
const string &stream_id) :
MediaSource(HLS_SCHEMA, vhost, app, stream_id){
HlsMediaSource(const string &vhost, const string &app, const string &stream_id) : MediaSource(HLS_SCHEMA, vhost, app, stream_id){
_readerCount = 0;
}