Ejemplo n.º 1
0
        private ARDAppClient(ARDAppClientConfig config, IARDAppClientDelegate @delegate, IARDSignalingChannelFactory channelFactory, IARDTURNClient turnClient, IARDRoomServerClient roomServerClient)
        {
            _config           = config;
            _channelFactory   = channelFactory;
            _turnClient       = turnClient;
            _roomServerClient = roomServerClient;

            _iceServers = new List <RTCIceServer>();
            _fileLogger = new RTCFileLogger();
            _fileLogger.Start();

            Delegate = @delegate;

            _messageQueue = new SignalingMessageQueue(() => _peerConnection != null, ProcessSignalingMessage, "ARDAppClient");
        }
Ejemplo n.º 2
0
 public static ARDAppClient Create(ARDAppClientConfig config = null, IARDAppClientDelegate @delegate = null, IARDSignalingChannelFactory channelFactory = null, IARDTURNClient turnClient = null, IARDRoomServerClient roomServerClient = null)
 {
     config           = config ?? new ARDAppClientConfig();
     channelFactory   = channelFactory ?? new DefaultARDSignalingChannelFactory();
     turnClient       = turnClient ?? new ARDTURNClient("https://appr.tc/params");
     roomServerClient = roomServerClient ?? new ARDAppEngineClient();
     return(new ARDAppClient(config, @delegate, channelFactory, turnClient, roomServerClient));
 }