static void Main(string[] args) { MediaGatewayConfig mediaConfig = new MediaGatewayConfig(); mediaConfig.AddConfigElement(new SilverlightConfig()); //mediaConfig.AddConfigElement(new FlashConfig()); var mediaGateway = new ChatGateway(mediaConfig); mediaGateway.Start(); Console.WriteLine("Video chat service Started!"); Console.WriteLine("Press enter to shut down service and exit.\n\n"); Console.ReadLine(); }
void InitMediaGateway() { if (_mediaGateway != null) { return; } var config = new MediaGatewayConfig(); config.AddConfigElement(new FlashConfig { ServiceName = "IPCameraServer" }); _mediaGateway = new MyMediaGateway(config, _currentModel); _mediaGateway.Start(); }
public ChatGateway( MediaGatewayConfig configuration) : base(configuration) { chatClients=new Dictionary<string, IClient>(); }
void InitMediaGateway() { if (_mediaGateway != null) return; var config = new MediaGatewayConfig(); config.AddConfigElement(new FlashConfig { ServiceName = "IPCameraServer" }); _mediaGateway = new MyMediaGateway(config, _currentModel); _mediaGateway.Start(); }
public MyMediaGateway(MediaGatewayConfig config, Camera currentCamera) : base(config) { _currentCam = currentCamera; clients = new Dictionary<IClient, MyClient>(); }
public MyMediaGateway(MediaGatewayConfig config, Camera currentCamera) : base(config) { _currentCam = currentCamera; clients = new Dictionary <IClient, MyClient>(); }