mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2025-11-07 12:52:54 -05:00
update webrtc servers and examples
Signed-off-by: si458 <simonsmith5521@gmail.com>
This commit is contained in:
@@ -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); }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user