diff --git a/app/components/app/CodeInput.vue b/app/components/app/CodeInput.vue index 20173d1..40d08f6 100644 --- a/app/components/app/CodeInput.vue +++ b/app/components/app/CodeInput.vue @@ -15,6 +15,7 @@ const viewerStore = useViewerStore() { const host = window.location.host return `${protocol}//${host}/ws/signaling` } - const config = useRuntimeConfig() - const isDev = process.dev - if (isDev) { - return 'ws://localhost:3000/ws/signaling' - } - - return 'wss://helium.srizan.dev/ws/signaling' + return '' } diff --git a/app/pages/index.vue b/app/pages/index.vue index 7e43cd3..991d837 100644 --- a/app/pages/index.vue +++ b/app/pages/index.vue @@ -24,6 +24,21 @@ const { send } = useWebSocket(wsUrl, { iceServers: [ { urls: 'stun:stun.l.google.com:19302' }, { urls: 'stun:stun1.l.google.com:19302' }, + { + urls: 'turn:openrelay.metered.ca:80', + username: 'openrelayproject', + credential: 'openrelayproject', + }, + { + urls: 'turn:openrelay.metered.ca:443', + username: 'openrelayproject', + credential: 'openrelayproject', + }, + { + urls: 'turn:openrelay.metered.ca:443?transport=tcp', + username: 'openrelayproject', + credential: 'openrelayproject', + }, ], iceCandidatePoolSize: 10 }); @@ -36,6 +51,7 @@ const { send } = useWebSocket(wsUrl, { }; peerConnection.onicecandidate = (event) => { + console.log('onicecandidate', event.candidate); if (event.candidate) { send(JSON.stringify({ event: 'ice-candidate', diff --git a/app/pages/stream.vue b/app/pages/stream.vue index 2090b98..da308f7 100644 --- a/app/pages/stream.vue +++ b/app/pages/stream.vue @@ -27,6 +27,21 @@ const { send } = useWebSocket(wsUrl, { iceServers: [ { urls: 'stun:stun.l.google.com:19302' }, { urls: 'stun:stun1.l.google.com:19302' }, + { + urls: 'turn:openrelay.metered.ca:80', + username: 'openrelayproject', + credential: 'openrelayproject', + }, + { + urls: 'turn:openrelay.metered.ca:443', + username: 'openrelayproject', + credential: 'openrelayproject', + }, + { + urls: 'turn:openrelay.metered.ca:443?transport=tcp', + username: 'openrelayproject', + credential: 'openrelayproject', + }, ], iceCandidatePoolSize: 10 });