Hello,
I'm developing app for UWP and I need to use WebRTC. However I have few problems that I can't solve and I can't find any examples on internet. I have following code:
// Ice servers
var iceServerList = new List<RTCIceServer>();
foreach (var server in o["iceServersList"])
{
RTCIceServer iceServer = new RTCIceServer();
iceServer.Url = s["urls"].FirstOrDefault().ToString();
iceServerList.Add(iceServer);
}
var config = new RTCConfiguration();
config.IceServers = iceServerList;
var connection = new RTCPeerConnection(config);
Debug.WriteLine("This line is never executed");
Problem is that no code is executed after line: var connection = new RTCPeerConnection(config);
I tried to add following: WebRTC.Initialize(this.Dispatcher); and WebRTC.Initialize(null); but that doesn't solve the problem.