Roderic Day 5 роки тому
джерело
коміт
fe6b4b7c86
1 змінених файлів з 5 додано та 1 видалено
  1. +5
    -1
      apps/streams.js

+ 5
- 1
apps/streams.js Переглянути файл

@@ -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()

Завантаження…
Відмінити
Зберегти