mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2024-11-22 04:33:16 +03:00
update webrtc servers and examples
Signed-off-by: si458 <simonsmith5521@gmail.com>
This commit is contained in:
parent
ea6682e06a
commit
7b48e3b5f5
@ -767,7 +767,7 @@
|
||||
},
|
||||
"webrtcConfig": {
|
||||
"type": "object",
|
||||
"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.",
|
||||
"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.",
|
||||
"properties": {
|
||||
"iceServers": {
|
||||
"type": "array",
|
||||
@ -776,7 +776,8 @@
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"urls": {
|
||||
"type": "string"
|
||||
"type": "string",
|
||||
"description": "STUN/TURN URLs, examples are stun:stun3.l.google.com:19302 or turn:openrelay.metered.ca:443"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
|
@ -112,7 +112,7 @@
|
||||
"_syslogtcp": "localhost:514",
|
||||
"_webrtcConfig": {
|
||||
"iceServers": [
|
||||
{ "urls": "stun:stun.services.mozilla.com" },
|
||||
{ "urls": "stun:stun.cloudflare.com:3478" },
|
||||
{ "urls": "stun:stun.l.google.com:19302" }
|
||||
]
|
||||
},
|
||||
|
@ -9219,7 +9219,7 @@
|
||||
} else if ((data.action == 'present') && (webRtcDesktop == null)) {
|
||||
// Setup WebRTC channel
|
||||
webRtcDesktop = { platform: data.platform };
|
||||
var configuration = null; //{ "iceServers": [ { 'urls': 'stun:stun.services.mozilla.com' }, { 'urls': 'stun:stun.l.google.com:19302' } ] };
|
||||
var configuration = null; //{ "iceServers": [ { 'urls': 'stun:stun.cloudflare.com:3478' }, { 'urls': 'stun:stun.l.google.com:19302' } ] };
|
||||
if (typeof RTCPeerConnection !== 'undefined') { webRtcDesktop.webrtc = new RTCPeerConnection(configuration); }
|
||||
else if (typeof webkitRTCPeerConnection !== 'undefined') { webRtcDesktop.webrtc = new webkitRTCPeerConnection(configuration); }
|
||||
|
||||
|
@ -539,7 +539,7 @@
|
||||
} else if ((data.action == 'present') && (webRtcDesktop == null)) {
|
||||
// Setup WebRTC channel
|
||||
webRtcDesktop = { platform: data.platform };
|
||||
var configuration = null; //{ "iceServers": [ { 'urls': 'stun:stun.services.mozilla.com' }, { 'urls': 'stun:stun.l.google.com:19302' } ] };
|
||||
var configuration = null; //{ "iceServers": [ { 'urls': 'stun:stun.cloudflare.com:3478' }, { 'urls': 'stun:stun.l.google.com:19302' } ] };
|
||||
if (typeof RTCPeerConnection !== 'undefined') { webRtcDesktop.webrtc = new RTCPeerConnection(configuration); }
|
||||
else if (typeof webkitRTCPeerConnection !== 'undefined') { webRtcDesktop.webrtc = new webkitRTCPeerConnection(configuration); }
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user