From cd1ca2c18c0801cd356b5977304872bf795803b4 Mon Sep 17 00:00:00 2001 From: ziyue <1213642868@qq.com> Date: Wed, 9 Feb 2022 11:48:15 +0800 Subject: [PATCH] =?UTF-8?q?http-flv=E7=9B=B4=E6=92=AD=E5=90=8E=E7=BC=80?= =?UTF-8?q?=E7=94=B1.flv=E6=94=B9=E6=88=90.live.flv(=E7=9B=AE=E7=9A=84?= =?UTF-8?q?=E6=98=AF=E9=98=B2=E6=AD=A2=E4=B8=8Eflv=E6=96=87=E4=BB=B6?= =?UTF-8?q?=E4=B8=8B=E8=BD=BD=E5=86=B2=E7=AA=81)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Http/HttpSession.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Http/HttpSession.cpp b/src/Http/HttpSession.cpp index 7b58a232..72072f2f 100644 --- a/src/Http/HttpSession.cpp +++ b/src/Http/HttpSession.cpp @@ -330,10 +330,10 @@ bool HttpSession::checkLiveStreamTS(const function &cb){ }); } -//http-flv 链接格式:http://vhost-url:port/app/streamid.flv?key1=value1&key2=value2 +//http-flv 链接格式:http://vhost-url:port/app/streamid.live.flv?key1=value1&key2=value2 bool HttpSession::checkLiveStreamFlv(const function &cb){ auto start_pts = atoll(_parser.getUrlArgs()["starPts"].data()); - return checkLiveStream(RTMP_SCHEMA, ".flv", [this, cb, start_pts](const MediaSource::Ptr &src) { + return checkLiveStream(RTMP_SCHEMA, ".live.flv", [this, cb, start_pts](const MediaSource::Ptr &src) { auto rtmp_src = dynamic_pointer_cast(src); assert(rtmp_src); if (!cb) {