From bd9769d215d7e7b11402077c05435dfeccda87b8 Mon Sep 17 00:00:00 2001 From: xiongziliang <771730766@qq.com> Date: Sun, 7 Mar 2021 10:04:58 +0800 Subject: [PATCH] =?UTF-8?q?=E5=85=BC=E5=AE=B9rtmps=20rtsps=E7=9A=84?= =?UTF-8?q?=E6=8E=A8=E6=B5=81=E5=9C=B0=E5=9D=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tests/test_pusherMp4.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;