Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
Z
ZLMediaKit
概览
Overview
Details
Activity
Cycle Analytics
版本库
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
问题
0
Issues
0
列表
Board
标记
里程碑
合并请求
0
Merge Requests
0
CI / CD
CI / CD
流水线
作业
日程表
图表
维基
Wiki
代码片段
Snippets
成员
Collapse sidebar
Close sidebar
活动
图像
聊天
创建新问题
作业
提交
Issue Boards
Open sidebar
张翔宇
ZLMediaKit
Commits
7f8aa7b3
Commit
7f8aa7b3
authored
4 years ago
by
xiongziliang
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/master'
parents
bdb28c53
c216821e
隐藏空白字符变更
内嵌
并排
正在显示
1 个修改的文件
包含
6 行增加
和
1 行删除
+6
-1
src/Rtmp/RtmpSession.cpp
+6
-1
没有找到文件。
src/Rtmp/RtmpSession.cpp
查看文件 @
7f8aa7b3
...
...
@@ -380,7 +380,12 @@ string RtmpSession::getStreamId(const string &str){
//vlc和ffplay在播放 rtmp://127.0.0.1/record/0.mp4时,
//传过来的url会是rtmp://127.0.0.1/record/mp4:0,
//我们在这里还原成0.mp4
stream_id
=
stream_id
.
substr
(
pos
+
1
)
+
"."
+
stream_id
.
substr
(
0
,
pos
);
//实际使用时发现vlc,mpv等会传过来rtmp://127.0.0.1/record/mp4:0.mp4,这里做个判断
auto
ext
=
stream_id
.
substr
(
0
,
pos
);
stream_id
=
stream_id
.
substr
(
pos
+
1
);
if
(
stream_id
.
find
(
ext
)
==
string
::
npos
){
stream_id
=
stream_id
+
"."
+
ext
;
}
}
if
(
params
.
empty
()){
...
...
This diff is collapsed.
Click to expand it.
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论