update webrtc servers and examples
Signed-off-by: si458 <simonsmith5521@gmail.com>
si458 committed
Sep 1, 2024 at 18:56 UTC
7b48e3b5f564ec2d82dc2aca3a3f861dc3a93986
4 files changed
+6
-5
meshcentral-config-schema.json
+3
-2
@@ -767,7 +767,7 @@
767
},
768
"webrtcConfig": {
769
"type": "object",
770
- "description": "The STUN servers used for WebRTC, if not specified the Google and Mozilla servers and used when the server is not in LAN mode.",
770
+ "description": "The STUN/TURN servers used for WebRTC, if not specified the Google and Cloudflare STUN servers are used when the server is not in LAN mode.",
771
"properties": {
772
"iceServers": {
773
"type": "array",
@@ -776,7 +776,8 @@
776
"type": "object",
777
"properties": {
778
"urls": {
779
- "type": "string"
779
+ "type": "string",
780
+ "description": "STUN/TURN URLs, examples are stun:stun3.l.google.com:19302 or turn:openrelay.metered.ca:443"
781
}
782
},
783
"required": [
sample-config-advanced.json
+1
-1
@@ -112,7 +112,7 @@
112
"_syslogtcp": "localhost:514",
113
"_webrtcConfig": {
114
"iceServers": [
115
- { "urls": "stun:stun.services.mozilla.com" },
115
+ { "urls": "stun:stun.cloudflare.com:3478" },
116
{ "urls": "stun:stun.l.google.com:19302" }
117
]
118
},
views/default.handlebars
+1
-1
@@ -9219,7 +9219,7 @@
9219
} else if ((data.action == 'present') && (webRtcDesktop == null)) {
9220
// Setup WebRTC channel
9221
webRtcDesktop = { platform: data.platform };
9222
- var configuration = null; //{ "iceServers": [ { 'urls': 'stun:stun.services.mozilla.com' }, { 'urls': 'stun:stun.l.google.com:19302' } ] };
9222
+ var configuration = null; //{ "iceServers": [ { 'urls': 'stun:stun.cloudflare.com:3478' }, { 'urls': 'stun:stun.l.google.com:19302' } ] };
9223
if (typeof RTCPeerConnection !== 'undefined') { webRtcDesktop.webrtc = new RTCPeerConnection(configuration); }
9224
else if (typeof webkitRTCPeerConnection !== 'undefined') { webRtcDesktop.webrtc = new webkitRTCPeerConnection(configuration); }
9225
views/sharing.handlebars
+1
-1
@@ -539,7 +539,7 @@
539
} else if ((data.action == 'present') && (webRtcDesktop == null)) {
540
// Setup WebRTC channel
541
webRtcDesktop = { platform: data.platform };
542
- var configuration = null; //{ "iceServers": [ { 'urls': 'stun:stun.services.mozilla.com' }, { 'urls': 'stun:stun.l.google.com:19302' } ] };
542
+ var configuration = null; //{ "iceServers": [ { 'urls': 'stun:stun.cloudflare.com:3478' }, { 'urls': 'stun:stun.l.google.com:19302' } ] };
543
if (typeof RTCPeerConnection !== 'undefined') { webRtcDesktop.webrtc = new RTCPeerConnection(configuration); }
544
else if (typeof webkitRTCPeerConnection !== 'undefined') { webRtcDesktop.webrtc = new webkitRTCPeerConnection(configuration); }
545