Disable usage of STUN server (it should not be needed for local)
This commit is contained in:
parent
57fb09fbf1
commit
e509c328f1
@ -51,7 +51,7 @@
|
|||||||
sdpSemantics: 'unified-plan'
|
sdpSemantics: 'unified-plan'
|
||||||
};
|
};
|
||||||
|
|
||||||
if (!document.getElementById('use-stun') || document.getElementById('use-stun').checked) {
|
if (document.getElementById('use-stun') && document.getElementById('use-stun').checked) {
|
||||||
config.iceServers = [{urls: ['stun:stun.l.google.com:19302']}];
|
config.iceServers = [{urls: ['stun:stun.l.google.com:19302']}];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -33,7 +33,7 @@ static const auto webrtc_client_lock_timeout = 3 * 1000ms;
|
|||||||
static const auto webrtc_client_max_json_body = 10 * 1024;
|
static const auto webrtc_client_max_json_body = 10 * 1024;
|
||||||
static const auto webrtc_client_video_payload_type = 102; // H264
|
static const auto webrtc_client_video_payload_type = 102; // H264
|
||||||
static const rtc::Configuration webrtc_configuration = {
|
static const rtc::Configuration webrtc_configuration = {
|
||||||
.iceServers = { rtc::IceServer("stun:stun.l.google.com:19302") },
|
// .iceServers = { rtc::IceServer("stun:stun.l.google.com:19302") },
|
||||||
.disableAutoNegotiation = true
|
.disableAutoNegotiation = true
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user