mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2024-11-26 04:31:37 +08:00
修复未开启宏编译失败问题
This commit is contained in:
parent
a916760ac3
commit
5854a26047
@ -266,6 +266,7 @@ API_EXPORT uint16_t API_CALL mk_rtc_server_start(uint16_t port) {
|
|||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef ENABLE_WEBRTC
|
||||||
class WebRtcArgsUrl : public mediakit::WebRtcArgs {
|
class WebRtcArgsUrl : public mediakit::WebRtcArgs {
|
||||||
public:
|
public:
|
||||||
WebRtcArgsUrl(std::string url) { _url = std::move(url); }
|
WebRtcArgsUrl(std::string url) { _url = std::move(url); }
|
||||||
@ -281,6 +282,7 @@ public:
|
|||||||
private:
|
private:
|
||||||
std::string _url;
|
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,
|
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) {
|
const char *offer, const char *url) {
|
||||||
@ -332,7 +334,6 @@ API_EXPORT uint16_t API_CALL mk_srt_server_start(uint16_t port) {
|
|||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
API_EXPORT uint16_t API_CALL mk_shell_server_start(uint16_t port){
|
API_EXPORT uint16_t API_CALL mk_shell_server_start(uint16_t port){
|
||||||
try {
|
try {
|
||||||
shell_server = std::make_shared<TcpServer>();
|
shell_server = std::make_shared<TcpServer>();
|
||||||
|
Loading…
Reference in New Issue
Block a user