mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2026-07-05 10:58:11 +08:00
精简等待监听流异步注册后回复事件相关代码
This commit is contained in:
@@ -42,6 +42,10 @@
|
||||
using namespace std;
|
||||
using namespace toolkit;
|
||||
|
||||
namespace toolkit{
|
||||
class TcpSession;
|
||||
}//namespace toolkit
|
||||
|
||||
namespace mediakit {
|
||||
|
||||
class MediaSource;
|
||||
@@ -90,7 +94,6 @@ public:
|
||||
string _param_strs;
|
||||
};
|
||||
|
||||
|
||||
class MediaSource: public enable_shared_from_this<MediaSource> {
|
||||
public:
|
||||
typedef std::shared_ptr<MediaSource> Ptr;
|
||||
@@ -122,6 +125,12 @@ public:
|
||||
const string &id,
|
||||
bool bMake = true) ;
|
||||
|
||||
static void findAsync(const MediaInfo &info,
|
||||
const std::shared_ptr<TcpSession> &session,
|
||||
bool retry,
|
||||
int maxWaitMs,
|
||||
const function<void(const MediaSource::Ptr &src)> &cb);
|
||||
|
||||
const string& getSchema() const {
|
||||
return _strSchema;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user