Ejemplo n.º 1
0
        private void Stop()
        {
            /*if (player != null)
             * {
             *  player.Stop();
             * }*/
            Thread stopLibVLCThread = new Thread(new ThreadStart(StopLibVLCThread));

            stopLibVLCThread.Start();

            if (playerMjpeg != null)
            {
                playerMjpeg.Stop();
            }

            if (timer != null)
            {
                timer.Change(Timeout.Infinite, Timeout.Infinite); // stop timer
                timer.Dispose();
                timer = null;
            }

            if (anpr != null)
            {
                anpr.ANPRStopThread();
                anpr.ANPRDetected -= anpr_ANPRDetected;
                anpr = null;
            }

            notifyColor = Color.LightGray;
            notifyCount = 0;
            DrawBorder();

            lastPlayTime      = 0;
            mediaMonitorCount = 0;

            overflowCount = 0;

            //_plateListIdx = 0;
            //_plateList.Clear();
        }
Ejemplo n.º 2
0
        private void Stop()
        {
            if (player != null)
            {
                player.Stop();
            }

            if (playerMjpeg != null)
            {
                playerMjpeg.Stop();
            }

            timer.Change(Timeout.Infinite, Timeout.Infinite); // stop timer
            timer.Dispose();
            timer = null;

            anpr.ANPRStopThread();
            anpr.ANPRDetected -= anpr_ANPRDetected;
            anpr = null;

            //_plateListIdx = 0;
            //_plateList.Clear();
        }