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
ab32ca39
Commit
ab32ca39
authored
5 years ago
by
xiongziliang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
去除多余日志
parent
5d2864cf
隐藏空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
6 行增加
和
6 行删除
+6
-6
src/Rtmp/RtmpProtocol.cpp
+5
-5
src/Rtmp/RtmpSession.cpp
+1
-1
没有找到文件。
src/Rtmp/RtmpProtocol.cpp
查看文件 @
ab32ca39
...
@@ -332,7 +332,7 @@ void RtmpProtocol::handle_C0C1() {
...
@@ -332,7 +332,7 @@ void RtmpProtocol::handle_C0C1() {
//complex handsharke
//complex handsharke
handle_C1_complex
();
handle_C1_complex
();
#else
#else
WarnL
<<
"未打开ENABLE_OPENSSL宏,复杂握手采用简单方式处理!"
;
WarnL
<<
"未打开ENABLE_OPENSSL宏,复杂握手采用简单方式处理
,flash播放器可能无法播放
!"
;
handle_C1_simple
();
handle_C1_simple
();
#endif//ENABLE_OPENSSL
#endif//ENABLE_OPENSSL
}
}
...
@@ -372,10 +372,10 @@ void RtmpProtocol::handle_C1_complex(){
...
@@ -372,10 +372,10 @@ void RtmpProtocol::handle_C1_complex(){
check_C1_Digest
(
digest
,
c1_joined
);
check_C1_Digest
(
digest
,
c1_joined
);
send_complex_S0S1S2
(
0
,
digest
);
send_complex_S0S1S2
(
0
,
digest
);
InfoL
<<
"schema0"
;
//
InfoL << "schema0";
}
catch
(
std
::
exception
&
ex
){
}
catch
(
std
::
exception
&
ex
){
//貌似flash从来都不用schema1
//貌似flash从来都不用schema1
WarnL
<<
"try rtmp complex schema0 failed:"
<<
ex
.
what
();
//
WarnL << "try rtmp complex schema0 failed:" << ex.what();
try
{
try
{
/* c1s1 schema1
/* c1s1 schema1
time: 4bytes
time: 4bytes
...
@@ -389,9 +389,9 @@ void RtmpProtocol::handle_C1_complex(){
...
@@ -389,9 +389,9 @@ void RtmpProtocol::handle_C1_complex(){
check_C1_Digest
(
digest
,
c1_joined
);
check_C1_Digest
(
digest
,
c1_joined
);
send_complex_S0S1S2
(
1
,
digest
);
send_complex_S0S1S2
(
1
,
digest
);
InfoL
<<
"schema1"
;
//
InfoL << "schema1";
}
catch
(
std
::
exception
&
ex
){
}
catch
(
std
::
exception
&
ex
){
WarnL
<<
"try rtmp complex schema1 failed:"
<<
ex
.
what
();
//
WarnL << "try rtmp complex schema1 failed:" << ex.what();
handle_C1_simple
();
handle_C1_simple
();
}
}
}
}
...
...
This diff is collapsed.
Click to expand it.
src/Rtmp/RtmpSession.cpp
查看文件 @
ab32ca39
...
@@ -452,7 +452,7 @@ void RtmpSession::onProcessCmd(AMFDecoder &dec) {
...
@@ -452,7 +452,7 @@ void RtmpSession::onProcessCmd(AMFDecoder &dec) {
std
::
string
method
=
dec
.
load
<
std
::
string
>
();
std
::
string
method
=
dec
.
load
<
std
::
string
>
();
auto
it
=
s_cmd_functions
.
find
(
method
);
auto
it
=
s_cmd_functions
.
find
(
method
);
if
(
it
==
s_cmd_functions
.
end
())
{
if
(
it
==
s_cmd_functions
.
end
())
{
TraceP
(
this
)
<<
"can not support cmd:"
<<
method
;
//
TraceP(this) << "can not support cmd:" << method;
return
;
return
;
}
}
_dNowReqID
=
dec
.
load
<
double
>
();
_dNowReqID
=
dec
.
load
<
double
>
();
...
...
This diff is collapsed.
Click to expand it.
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论