コード例 #1
0
ファイル: VsProviderManager.cs プロジェクト: tmpkus/openvss
 public void StartProvider()
 {
     lock (this)
     {
         coreProvider.Start();
         checkForStopProviderTimer.Start();
         provicerRuningState = true;
     }
 }
コード例 #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();
            }
        }
コード例 #3
0
ファイル: VsCamera.cs プロジェクト: nagyistoce/openvss
 // -----------------------------------------------------------------------------------------------------------------------
 // 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);
     }
 }