Open MNie opened 3 years ago
Do we have any updates on this ?
I can at least confirm that we use coturn with MixedReality-WebRTC -- both v1.0.3 and v2.0.2 -- and have had no problem with relay candidates being generated and used as expected. The only setup we do is to add our server URL and credentials when initializing the peer connection, as below. Might it be a password problem? Do the coturn logs show anything?
var cfg = new PeerConnectionConfiguration()
{
SdpSemantic = SdpSemantic.UnifiedPlan
};
cfg.IceServers.Add(new Microsoft.MixedReality.WebRTC.IceServer
{
Urls = { server.Url },
TurnUserName = server.Username,
TurnPassword = server.Password
});
m_peerConnection = new PeerConnection();
await m_peerConnection.InitializeAsync(cfg);
I've hit an issue relating to TURNS (Turn over TLS) as well. Looking at the communication in wireshark the TLS handshake fail with unknown CA. I've checked the certificates on my computer, and it included the CA listed, but for some reason the call did not have access to the list of CAs for some reason?
@kspark-scott, does your turn server use "turn:" or "turns:" at the start of the server url? I've gotten turn without tls to work.
We've also noticed that the request does not pick up on proxy servers either, I wonder if there is a limitation in the google api or elsewhere which does not pick up on trusted CA and proxy server configuration.
@torepaulsson, yes, that's the difference. We use only turn
. I missed the reference to turns
in the original description.
Hi again, looking around I found issue on the webrtc lib about using the OS Trust Store instead of a precompiled list of root CA:s; https://bugs.chromium.org/p/webrtc/issues/detail?id=11710
Seems like webrtc bundles a list of root certificates, in our case we use LetsEncrypt which is not included in the list.
I've found some code where there is a custom validation, unsure if we can somehow get that available in the .net wrapper.
Describe the bug I have a coTurn server configured to accept Stun/Turn and Turns. It seems that everything is working just fine when testing the server on trickle-ice page. Relay candidate is generated.
But when trying to check what candidates were generated when using MixedReality-WebRTC I got only host candidates:
When I check Stun or Turn everything works just fine.
To Reproduce The whole codebase could be found here. To reproduce the problem:
Expected behavior Relay candidate would be generated for
turns
.Environment
Additional context Stun and Turn works fine, turns works fine in the production environment (where Golang and Fable are used).