完善获取媒体读取器个数方法

This commit is contained in:
xiongziliang
2019-05-27 16:09:29 +08:00
parent 0fa2452657
commit 3917b6451c
7 changed files with 24 additions and 4 deletions

View File

@@ -54,10 +54,13 @@ public:
//拖动进度条
return false;
}
virtual bool close() {
//通知其停止推流
return false;
}
virtual void onReaderChanged(const EventPoller::Ptr &poller,int size,bool add_flag){}
};
class MediaInfo
{
@@ -166,6 +169,7 @@ public:
}
}
virtual int readerCount() = 0;
protected:
void regist() ;
bool unregist() ;