refine code, rename SrsRtmp to SrsRtmpServer.
This commit is contained in:
parent
8aedc51a2f
commit
6b213b73eb
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 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;
|
return ERROR_SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user