コード例 #1
0
        public OnlineStream(MyMediaGateway mgw)
        {
            MediaGateway = mgw;

            InitializeComponent();

            MediaGateway.ClientCountChange += MediaGateway_ClientCountChange;
        }
コード例 #2
0
        void InitMediaGateway()
        {
            if (_mediaGateway != null)
                return;

            var config = new MediaGatewayConfig();
            config.AddConfigElement(new FlashConfig { ServiceName = "IPCameraServer" });

            _mediaGateway = new MyMediaGateway(config, _currentModel);
            _mediaGateway.Start();
        }