1
0
Fork 0
mirror of https://github.com/ossrs/srs.git synced 2025-02-13 11:51:57 +00:00

refine code, rename SrsRtmp to SrsRtmpServer.

This commit is contained in:
winlin 2014-03-02 14:07:10 +08:00
parent 8aedc51a2f
commit 6b213b73eb

12
trunk/src/libs/srs_librtmp.cpp Normal file → Executable file
View 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;
} }