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

Loading…
Отказ
Запис