diff --git a/tests/test_pusherMp4.cpp b/tests/test_pusherMp4.cpp index 25ee64e9..a33bf0a3 100644 --- a/tests/test_pusherMp4.cpp +++ b/tests/test_pusherMp4.cpp @@ -102,7 +102,7 @@ int domain(const string & filePath,const string & pushUrl){ Logger::Instance().setWriter(std::make_shared()); 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;