Ejemplo n.º 1
0
 public void StartProvider()
 {
     lock (this)
     {
         coreProvider.Start();
         checkForStopProviderTimer.Start();
         provicerRuningState = true;
     }
 }
Ejemplo n.º 2
0
        // Start receiving video frames
        public void Start()
        {
            videoSource.Start();

            if (thread == null)
            {
                // create events
                stopEvent = new ManualResetEvent(false);
                execEvent = new ManualResetEvent(false);

                // create and start new thread
                thread              = new Thread(new ThreadStart(WorkerThread));
                thread.Name         = this.controlCommand;
                thread.IsBackground = true;
                thread.Start();

                JPEGSource.SetAllowUnsafeHeaderParsing20();
            }
        }
Ejemplo n.º 3
0
 // -----------------------------------------------------------------------------------------------------------------------
 // Start video source
 // -----------------------------------------------------------------------------------------------------------------------
 public void Start()
 {
     Monitor.Enter(syncCtrl);
     try
     {
         if (vsVideoSource != null)
         {
             vsVideoSource.Start();
         }
     }
     catch (Exception err)
     {
         logger.Log(LogLevel.Error, err.Message + " " + err.Source + " " + err.StackTrace);;
     }
     finally
     {
         Monitor.Exit(syncCtrl);
     }
 }