public void StartProvider() { lock (this) { coreProvider.Start(); checkForStopProviderTimer.Start(); provicerRuningState = true; } }
// 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(); } }
// ----------------------------------------------------------------------------------------------------------------------- // 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); } }