From 75607d0723ee7f01d2c0e7c87870c46299c885db Mon Sep 17 00:00:00 2001 From: Xiaoniu Date: Wed, 19 May 2021 20:21:20 +0800 Subject: [PATCH 1/3] Fix #2364: Live: Fail for stream busy if GB28181 is publishing. --- trunk/src/app/srs_app_rtmp_conn.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/trunk/src/app/srs_app_rtmp_conn.cpp b/trunk/src/app/srs_app_rtmp_conn.cpp index 29947eaa2..1f1b256cb 100644 --- a/trunk/src/app/srs_app_rtmp_conn.cpp +++ b/trunk/src/app/srs_app_rtmp_conn.cpp @@ -960,6 +960,15 @@ srs_error_t SrsRtmpConn::acquire_publish(SrsLiveSource* source) srs_error_t err = srs_success; SrsRequest* req = info->req; + + // @see https://github.com/ossrs/srs/issues/2364 + // Check whether GB28181 stream is busy. +#if defined(SRS_GB28181) + SrsGb28181RtmpMuxer* gb28181 = _srs_gb28181->fetch_rtmpmuxer(req->stream); + if (gb28181 != NULL) { + return srs_error_new(ERROR_SYSTEM_STREAM_BUSY, "gb28181 stream %s busy", req->get_stream_url().c_str()); + } +#endif // Check whether RTC stream is busy. #ifdef SRS_RTC From ef617b5fc69fed613f403928ab2e83ebed824e74 Mon Sep 17 00:00:00 2001 From: winlin Date: Wed, 19 May 2021 20:26:35 +0800 Subject: [PATCH 2/3] Demo: Refine H5 demo page --- trunk/research/api-server/static-dir/index.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/trunk/research/api-server/static-dir/index.html b/trunk/research/api-server/static-dir/index.html index b3ecfc979..e73a6e75b 100755 --- a/trunk/research/api-server/static-dir/index.html +++ b/trunk/research/api-server/static-dir/index.html @@ -11,8 +11,8 @@ 点击进入SRS控制台

- Click here to start SRS player.
- 点击进入SRS播放器 + Click here to start SRS player.
+ 点击进入SRS播放器

SRS Team © 2021