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": {
|
"webrtcConfig": {
|
||||||
"type": "object",
|
"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": {
|
"properties": {
|
||||||
"iceServers": {
|
"iceServers": {
|
||||||
"type": "array",
|
"type": "array",
|
||||||
|
@ -776,7 +776,8 @@
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"properties": {
|
"properties": {
|
||||||
"urls": {
|
"urls": {
|
||||||
"type": "string"
|
"type": "string",
|
||||||
|
"description": "STUN/TURN URLs, examples are stun:stun3.l.google.com:19302 or turn:openrelay.metered.ca:443"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"required": [
|
"required": [
|
||||||
|
|
|
@ -112,7 +112,7 @@
|
||||||
"_syslogtcp": "localhost:514",
|
"_syslogtcp": "localhost:514",
|
||||||
"_webrtcConfig": {
|
"_webrtcConfig": {
|
||||||
"iceServers": [
|
"iceServers": [
|
||||||
{ "urls": "stun:stun.services.mozilla.com" },
|
{ "urls": "stun:stun.cloudflare.com:3478" },
|
||||||
{ "urls": "stun:stun.l.google.com:19302" }
|
{ "urls": "stun:stun.l.google.com:19302" }
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
|
|
@ -9219,7 +9219,7 @@
|
||||||
} else if ((data.action == 'present') && (webRtcDesktop == null)) {
|
} else if ((data.action == 'present') && (webRtcDesktop == null)) {
|
||||||
// Setup WebRTC channel
|
// Setup WebRTC channel
|
||||||
webRtcDesktop = { platform: data.platform };
|
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); }
|
if (typeof RTCPeerConnection !== 'undefined') { webRtcDesktop.webrtc = new RTCPeerConnection(configuration); }
|
||||||
else if (typeof webkitRTCPeerConnection !== 'undefined') { webRtcDesktop.webrtc = new webkitRTCPeerConnection(configuration); }
|
else if (typeof webkitRTCPeerConnection !== 'undefined') { webRtcDesktop.webrtc = new webkitRTCPeerConnection(configuration); }
|
||||||
|
|
||||||
|
|
|
@ -539,7 +539,7 @@
|
||||||
} else if ((data.action == 'present') && (webRtcDesktop == null)) {
|
} else if ((data.action == 'present') && (webRtcDesktop == null)) {
|
||||||
// Setup WebRTC channel
|
// Setup WebRTC channel
|
||||||
webRtcDesktop = { platform: data.platform };
|
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); }
|
if (typeof RTCPeerConnection !== 'undefined') { webRtcDesktop.webrtc = new RTCPeerConnection(configuration); }
|
||||||
else if (typeof webkitRTCPeerConnection !== 'undefined') { webRtcDesktop.webrtc = new webkitRTCPeerConnection(configuration); }
|
else if (typeof webkitRTCPeerConnection !== 'undefined') { webRtcDesktop.webrtc = new webkitRTCPeerConnection(configuration); }
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue