mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2024-11-26 04:31:37 +08:00
兼容rtmps rtsps的推流地址
This commit is contained in:
parent
43828d4390
commit
bd9769d215
@ -102,7 +102,7 @@ int domain(const string & filePath,const string & pushUrl){
|
||||
Logger::Instance().setWriter(std::make_shared<AsyncLogWriter>());
|
||||
auto poller = EventPollerPool::Instance().getPoller();
|
||||
//vhost/app/stream可以随便自己填,现在不限制app应用名了
|
||||
createPusher(poller,FindField(pushUrl.data(), nullptr,"://"),DEFAULT_VHOST,"live","stream",filePath,pushUrl);
|
||||
createPusher(poller,FindField(pushUrl.data(), nullptr,"://").substr(0,4),DEFAULT_VHOST,"live","stream",filePath,pushUrl);
|
||||
|
||||
//设置退出信号处理函数
|
||||
static semaphore sem;
|
||||
|
Loading…
Reference in New Issue
Block a user