public OnlineStream(MyMediaGateway mgw) { MediaGateway = mgw; InitializeComponent(); MediaGateway.ClientCountChange += MediaGateway_ClientCountChange; }
void InitMediaGateway() { if (_mediaGateway != null) return; var config = new MediaGatewayConfig(); config.AddConfigElement(new FlashConfig { ServiceName = "IPCameraServer" }); _mediaGateway = new MyMediaGateway(config, _currentModel); _mediaGateway.Start(); }