mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2026-06-20 07:12:21 +08:00
初步提交2.0版本,支持虚拟主机
This commit is contained in:
@@ -45,7 +45,7 @@ public:
|
||||
//设置方法:proxy[PlayerProxy::kAliveSecond] = 100;
|
||||
static const char kAliveSecond[];
|
||||
|
||||
PlayerProxy(const char *strApp, const char *strSrc);
|
||||
PlayerProxy(const char *strVhost, const char *strApp, const char *strSrc);
|
||||
virtual ~PlayerProxy();
|
||||
void play(const char* strUrl) override;
|
||||
void setOnExpired(const function<void()> &cb){
|
||||
@@ -56,6 +56,7 @@ private :
|
||||
Ticker m_aliveTicker;
|
||||
uint32_t m_aliveSecond = 0;
|
||||
function<void()> onExpired;
|
||||
string m_strVhost;
|
||||
string m_strApp;
|
||||
string m_strSrc;
|
||||
void initMedia();
|
||||
|
||||
Reference in New Issue
Block a user