From 8192b37cd44ca4c4829d1323571b64337dbc6b46 Mon Sep 17 00:00:00 2001 From: Xiaofeng Wang Date: Sun, 24 Jul 2022 22:30:59 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3=20ENABLE=5FRTPPROXY=20?= =?UTF-8?q?=E7=9A=84=E5=A4=84=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server/WebApi.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/server/WebApi.cpp b/server/WebApi.cpp index a7e6c34a..144b5c14 100755 --- a/server/WebApi.cpp +++ b/server/WebApi.cpp @@ -368,6 +368,7 @@ Value makeMediaSourceJson(MediaSource &media){ return item; } +#if defined(ENABLE_RTPPROXY) uint16_t openRtpServer(uint16_t local_port, const string &stream_id, bool enable_tcp, const string &local_ip, bool re_use_port, uint32_t ssrc) { lock_guard lck(s_rtpServerMapMtx); if (s_rtpServerMap.find(stream_id) != s_rtpServerMap.end()) { @@ -399,6 +400,7 @@ bool closeRtpServer(const string &stream_id) { s_rtpServerMap.erase(it); return true; } +#endif void getStatisticJson(const function &cb) { auto obj = std::make_shared(objectValue);