Browse Source

Coturn

master
Roderic Day 5 years ago
parent
commit
fe6b4b7c86
1 changed files with 5 additions and 1 deletions
  1. +5
    -1
      apps/streams.js

+ 5
- 1
apps/streams.js View File

@@ -42,7 +42,11 @@ const updateOtherVideo = (target, dom) => {
dom.srcObject = new MediaStream()
let rpc = null

const rpcConfig = {iceServers: [{urls: 'stun:stun.sipgate.net:3478'}]}
const rpcConfig = {iceServers: [{
urls: ['stun:stun.pico.chat:5349', 'turn:turn.pico.chat:5349'],
username: 'roderic',
credential: 'tomodachi',
}]}

const stopRpc = () => {
rpc && rpc.close()

Loading…
Cancel
Save