Advertisement
Guest User

Untitled

a guest
May 18th, 2016
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.60 KB | None | 0 0
  1. var pc_config = {"iceServers": [{"url": "stun:stun.l.google.com:19302"},
  2. {"url":"turn:my_username@<turn_server_ip_address>", "credential":"my_password"}]};
  3.  
  4. pc_new = new webkitRTCPeerConnection(pc_config);
  5.  
  6. var pc_config = {"iceServers": [{"url":"turn:my_username@<turn_server_ip_address>", "credential":"my_password"}]};
  7.  
  8. pc_new = new webkitRTCPeerConnection(pc_config);
  9.  
  10. sudo apt-get install coturn
  11.  
  12. sudo turnserver -a -o -v -n --no-dtls --no-tls -u test:test -r "someRealm"
  13.  
  14. var peerConnectionConfig = {
  15. iceServers: [{
  16. urls: YOUR_IP:3478,
  17. username: 'test',
  18. password: 'test'
  19. }]
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement