Beispiel #1
0
 protected RemoteControlBase()
 {
     this.Id                = Guid.NewGuid();
     this.config            = new WebRtcConfig();
     this.config.iceServers = new List <iceServer>();
     this.config.iceServers.Add(new iceServer
     {
         url        = "turn:" + ServerAddrs.lylRtcServerAddr + "?transport=udp",
         username   = MachineLogic.localMachine().machineId,
         credential = MachineLogic.localMachine().machineId,
     });
     this.config.iceTransportPolicy = iceTransportPolicyType.kRelay;
     PeerConnection.RegisterIceServer(this.config);
 }