Add second STUN server from Cloudflare
This commit is contained in:
+1
-1
@@ -71,7 +71,7 @@ export class VideoRTC extends HTMLElement {
|
||||
*/
|
||||
this.pcConfig = {
|
||||
bundlePolicy: 'max-bundle',
|
||||
iceServers: [{urls: 'stun:stun.l.google.com:19302'}],
|
||||
iceServers: [{urls: ['stun:stun.cloudflare.com:3478', 'stun:stun.l.google.com:19302']}],
|
||||
sdpSemantics: 'unified-plan', // important for Chromecast 1
|
||||
};
|
||||
|
||||
|
||||
@@ -21,7 +21,7 @@
|
||||
<script>
|
||||
async function PeerConnection(media) {
|
||||
const pc = new RTCPeerConnection({
|
||||
iceServers: [{urls: 'stun:stun.l.google.com:19302'}]
|
||||
iceServers: [{urls: ['stun:stun.cloudflare.com:3478', 'stun:stun.l.google.com:19302']}]
|
||||
});
|
||||
|
||||
document.getElementById('video').srcObject = new MediaStream([
|
||||
|
||||
+1
-1
@@ -21,7 +21,7 @@
|
||||
<script>
|
||||
async function PeerConnection(media) {
|
||||
const pc = new RTCPeerConnection({
|
||||
iceServers: [{urls: 'stun:stun.l.google.com:19302'}]
|
||||
iceServers: [{urls: ['stun:stun.cloudflare.com:3478', 'stun:stun.l.google.com:19302']}]
|
||||
});
|
||||
|
||||
const localTracks = [];
|
||||
|
||||
Reference in New Issue
Block a user