Toggle navigation
Toggle navigation
此项目
正在载入...
Sign in
胡斌
/
srs
转到一个项目
Toggle navigation
项目
群组
代码片段
帮助
Toggle navigation pinning
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
winlin
2014-05-08 11:48:34 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
b2aab8804bc5165f26667da1f6a210ef9e4e13fa
b2aab880
1 parent
f5f29e48
use complex handshake for srs play
隐藏空白字符变更
内嵌
并排对比
正在显示
1 个修改的文件
包含
12 行增加
和
4 行删除
trunk/research/librtmp/srs_play.c
trunk/research/librtmp/srs_play.c
查看文件 @
b2aab88
...
...
@@ -48,11 +48,19 @@ int main(int argc, char** argv)
rtmp
=
srs_rtmp_create
(
"rtmp://127.0.0.1:1935/live/livestream"
);
}
if
(
srs_simple_handshake
(
rtmp
)
!=
0
)
{
printf
(
"simple handshake failed.
\n
"
);
goto
rtmp_destroy
;
if
(
1
)
{
if
(
srs_complex_handshake
(
rtmp
)
!=
0
)
{
printf
(
"complex handshake failed.
\n
"
);
goto
rtmp_destroy
;
}
printf
(
"complex handshake success
\n
"
);
}
else
{
if
(
srs_simple_handshake
(
rtmp
)
!=
0
)
{
printf
(
"simple handshake failed.
\n
"
);
goto
rtmp_destroy
;
}
printf
(
"simple handshake success
\n
"
);
}
printf
(
"simple handshake success
\n
"
);
if
(
srs_connect_app
(
rtmp
)
!=
0
)
{
printf
(
"connect vhost/app failed.
\n
"
);
...
...
请
注册
或
登录
后发表评论