These are chat archives for andyet/SimpleWebRTC

10th
Mar 2016
Eneko Lizardi Ituarte
@elizardi
Mar 10 2016 09:24
Hi! I want to configure SimpleWebRTC to use my own STUN/TURN servers. peerConnectionConfigcan do this, but when should I use it? Is this correct?
var webrtc = new SimpleWebRTC({
    // the id/element dom element that will hold "our" video
    localVideoEl: 'localVideo',
    // the id/element dom element that will hold remote videos
    remoteVideosEl: 'remoteVideos',
    // immediately ask for camera access
    autoRequestMedia: true, 
    peerConnectionConfig:{url:'stun:stunserver.org'},
    {url: 'turn:192.158.29.39:3478?transport=tcp',
    credential: 'JZEOEt2V3Qb0y27GRntt2u2PAYA=',
    username: '28224511:1379330808'}
   });
Claudio
@csturiale
Mar 10 2016 11:24
no. use
peerConnectionConfig: { iceServers: [ {url:'stun:stunserver.org'}, {url: 'turn:192.158.29.39:3478?transport=tcp', credential: 'JZEOEt2V3Qb0y27GRntt2u2PAYA=', username: '28224511:1379330808'} ]}
Eneko Lizardi Ituarte
@elizardi
Mar 10 2016 11:30
@csturiale Thanks!!!