mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
remove the complex handshake of librtmp. refine makefile of librtmp tools
This commit is contained in:
parent
69248cedaa
commit
93c9c55fb9
5 changed files with 39 additions and 91 deletions
|
@ -48,19 +48,11 @@ int main(int argc, char** argv)
|
|||
rtmp = srs_rtmp_create("rtmp://127.0.0.1:1935/live/livestream");
|
||||
}
|
||||
|
||||
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");
|
||||
if (srs_simple_handshake(rtmp) != 0) {
|
||||
printf("simple handshake failed.\n");
|
||||
goto rtmp_destroy;
|
||||
}
|
||||
printf("simple handshake success\n");
|
||||
|
||||
if (srs_connect_app(rtmp) != 0) {
|
||||
printf("connect vhost/app failed.\n");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue