Ejemplo n.º 1
0
        private void Start()
        {
            logger.Debug("StreamingForm::Start()");

            try
            {
                currentSession.Validate();

                if (currentSession.VideoEnabled || currentSession.AudioEnabled)
                {
                    bool starting = mediaStreamer.Start(currentSession);
                    if (!starting)
                    {
                        //...
                        logger.Warn("screenStreamer.Start(currentSession) == " + starting);
                    }
                }
                else
                {
                    logger.Debug("No media stream selected...");
                }
            }
            catch (Exception ex)
            {
                OnStreamError();

                logger.Error(ex);
                MessageBox.Show(ex.ToString());
            }
        }
Ejemplo n.º 2
0
        public void StartStreaming()
        {
            logger.Debug("StartStreaming()");

            if (mediaStreamer.State == MediaStreamerState.Shutdown)
            {
                this.ErrorObj  = null;
                this.ErrorCode = 0;

                streamSession = CreateSession();


                streamSession.Validate();

                mediaStreamer.Start(streamSession);
            }
        }