muaz-khan / RTCMultiConnection

RTCMultiConnection is a WebRTC JavaScript library for peer-to-peer applications (screen sharing, audio/video conferencing, file sharing, media streaming etc.)
https://muazkhan.com:9001/
MIT License
2.57k stars 1.37k forks source link

Force Scalable Audio/Video Broadcast to use your own turn server #782

Closed Proxy08 closed 5 years ago

Proxy08 commented 5 years ago

Hello, We are using the RTCMultiConnection Scalable Audio/Video Broadcast. We set up our own coTURN-server, but it does not seem to work even though I've followed these https://www.rtcmulticonnection.org/docs/iceServers/ we are still getting this error even in the same network

peer connnection close between you and userid


connection.iceServers = [];

// second step, set STUN url connection.iceServers.push({ urls: 'stun:yourSTUN.com:port' });

// last step, set TURN url (recommended) connection.iceServers.push({ urls: 'turn:myTURN.com:port', credential: 'mypassword', username: 'myusername' });


do you know how can we force Scalable Broadcast to use my own coturn???
muaz-khan commented 5 years ago

Please try this:

connection.iceTransportPolicy = 'relay'
connection.candidates = {
    turn: true
};
Proxy08 commented 5 years ago

still not working, I even tried to combine with

connection.getExternalIceServers = true;

but I still get that error peer connnection close between you and userid

Proxy08 commented 5 years ago

After intensive searching, it looks like the problem comes from chrome only, I've tested it in safari and opera everything works fine.

rtarta commented 5 years ago

@Proxy08 coudl you use twillo turn and stund services.

rtarta commented 5 years ago

@muaz-khan we need to force ? is it possible to force allways turn and stun server ?