소스 검색

Coturn

master
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…
취소
저장