private void videoPlayer_PlayStateChanged(object sender, PlayStateChangedEventArgs e)
        {
            UpdatePlayStatePicture();

            if (e.PlayState == GenericPlayerControl.PlayStates.Playing)
            {
                //isLoaded = true;
                tickBoxLocationsTimer.Enabled = true;
                _hourGlass.Dispose();

                if (!_isMouseDownToSeek)
                {
                    tickBoxLocationsTimer_Tick(sender, EventArgs.Empty);
                    playHeadBox.Visible = true;
                }
            }
            else
            {
                tickBoxLocationsTimer.Enabled = false;

                if (e.PlayState == GenericPlayerControl.PlayStates.Paused)
                    _hourGlass.Dispose();

                if (e.PlayState == GenericPlayerControl.PlayStates.Ended)
                { // end of clip. let's move playhead to start of highlight
                    Logger.Info("Hit the end of clip!");
                }
            }
        }
        private void handlePlayStateChanged(object sender, PlayStateChangedEventArgs e)
        {
            Logger.Info("PlayState: " + e.PlayState);

            this.PlayState = e.PlayState;

            if (e.PlayState == PlayStates.Playing || e.PlayState == PlayStates.Ready || e.PlayState == PlayStates.Stopped)
            {
                if (wmPlayer != null)
                    wmPlayer.Show();
                if (qtPlayer != null)
                    qtPlayer.Show();

                loadingLabel.Visible = false;
            }

            if (e.PlayState == PlayStates.Transitioning && !isClosing)
            {
                loadingLabel.Visible = true;

                if (wmPlayer != null)
                    wmPlayer.Hide();
                if (qtPlayer != null)
                    qtPlayer.Hide();
            }

            if (PlayStateChanged != null)
                PlayStateChanged(sender, e);
        }