From 5854a26047228a93307c508b4721a67899bd0a43 Mon Sep 17 00:00:00 2001 From: xiongziliang <771730766@qq.com> Date: Thu, 6 Oct 2022 12:59:12 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=9C=AA=E5=BC=80=E5=90=AF?= =?UTF-8?q?=E5=AE=8F=E7=BC=96=E8=AF=91=E5=A4=B1=E8=B4=A5=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/source/mk_common.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/api/source/mk_common.cpp b/api/source/mk_common.cpp index 9485ec49..c50971fe 100644 --- a/api/source/mk_common.cpp +++ b/api/source/mk_common.cpp @@ -266,6 +266,7 @@ API_EXPORT uint16_t API_CALL mk_rtc_server_start(uint16_t port) { #endif } +#ifdef ENABLE_WEBRTC class WebRtcArgsUrl : public mediakit::WebRtcArgs { public: WebRtcArgsUrl(std::string url) { _url = std::move(url); } @@ -281,6 +282,7 @@ public: private: std::string _url; }; +#endif API_EXPORT void API_CALL mk_webrtc_get_answer_sdp(void *user_data, on_mk_webrtc_get_answer_sdp cb, const char *type, const char *offer, const char *url) { @@ -332,7 +334,6 @@ API_EXPORT uint16_t API_CALL mk_srt_server_start(uint16_t port) { #endif } - API_EXPORT uint16_t API_CALL mk_shell_server_start(uint16_t port){ try { shell_server = std::make_shared();