mirror of
https://github.com/pikvm/ustreamer.git
synced 2025-12-23 18:50:00 +00:00
janus: replaces STUN variables to ICE_URL
This commit is contained in:
parent
71544880d1
commit
97494c3531
@ -670,15 +670,11 @@ static struct janus_plugin_result *_plugin_handle_message(
|
|||||||
}
|
}
|
||||||
|
|
||||||
} else if (!strcmp(request_str, "features")) {
|
} else if (!strcmp(request_str, "features")) {
|
||||||
const char *const stun_host = getenv("JANUS_USTREAMER_WEB_STUN_HOST");
|
|
||||||
const char *const stun_port = getenv("JANUS_USTREAMER_WEB_STUN_PORT");
|
|
||||||
json_t *const features = json_pack(
|
json_t *const features = json_pack(
|
||||||
"{s:b, s:b, s:{s:s, s:i}}",
|
"{s:b, s:b, s:{s:s?}}",
|
||||||
"audio", (_g_rtpa != NULL),
|
"audio", (_g_rtpa != NULL),
|
||||||
"mic", (_g_rtpa != NULL && _g_config->aplay_dev_name != NULL),
|
"mic", (_g_rtpa != NULL && _g_config->aplay_dev_name != NULL),
|
||||||
"stun",
|
"ice", "url", getenv("JANUS_USTREAMER_WEB_ICE_URL")
|
||||||
"host", (stun_host != NULL ? stun_host : ""),
|
|
||||||
"port", (stun_port != NULL ? atoi(stun_port) : 0)
|
|
||||||
);
|
);
|
||||||
PUSH_STATUS("features", features, NULL);
|
PUSH_STATUS("features", features, NULL);
|
||||||
json_decref(features);
|
json_decref(features);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user