mirror of
https://github.com/ossrs/srs.git
synced 2025-02-13 03:41:55 +00:00
refine code, rename SrsRtmp to SrsRtmpServer.
This commit is contained in:
parent
8aedc51a2f
commit
6b213b73eb
1 changed files with 275 additions and 263 deletions
12
trunk/src/libs/srs_librtmp.cpp
Normal file → Executable file
12
trunk/src/libs/srs_librtmp.cpp
Normal file → Executable file
|
@ -227,6 +227,18 @@ int srs_connect_app(srs_rtmp_t rtmp)
|
|||
|
||||
int srs_play_stream(srs_rtmp_t rtmp)
|
||||
{
|
||||
int ret = ERROR_SUCCESS;
|
||||
|
||||
srs_assert(rtmp != NULL);
|
||||
Context* context = (Context*)rtmp;
|
||||
|
||||
if ((ret = context->rtmp->create_stream(context->stream_id)) != ERROR_SUCCESS) {
|
||||
return ret;
|
||||
}
|
||||
if ((ret = context->rtmp->play(context->stream, context->stream_id)) != ERROR_SUCCESS) {
|
||||
return ret;
|
||||
}
|
||||
|
||||
return ERROR_SUCCESS;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue