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) {