mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
refine code, rename SrsRtmp to SrsRtmpServer.
This commit is contained in:
parent
4f91cae377
commit
8aedc51a2f
7 changed files with 58 additions and 42 deletions
|
@ -206,7 +206,23 @@ int srs_complex_handshake(srs_rtmp_t rtmp)
|
|||
|
||||
int srs_connect_app(srs_rtmp_t rtmp)
|
||||
{
|
||||
return ERROR_SUCCESS;
|
||||
int ret = ERROR_SUCCESS;
|
||||
|
||||
srs_assert(rtmp != NULL);
|
||||
Context* context = (Context*)rtmp;
|
||||
|
||||
string tcUrl = "rtmp://";
|
||||
tcUrl += context->vhost;
|
||||
tcUrl += ":";
|
||||
tcUrl += context->port;
|
||||
tcUrl += "/";
|
||||
tcUrl += context->app;
|
||||
|
||||
if ((ret = context->rtmp->connect_app(context->app, tcUrl)) != ERROR_SUCCESS) {
|
||||
return ret;
|
||||
}
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
int srs_play_stream(srs_rtmp_t rtmp)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue