Exemple #1
0
        public void PlayStateChanged(object sender, object objPlayProgressChangedValue)
        {
            VideoBackplayWindow v = (VideoBackplayWindow)sender;

            switch (v.CurrentPlaybackState)
            {
            case Enum_VideoPlaybackState.Null:
                btnStartPlay.Enabled = false;
                btnPause.Enabled     = false;
                btnClose.Enabled     = false;
                break;

            case Enum_VideoPlaybackState.Paused:
                btnStartPlay.Enabled = true;
                btnPause.Enabled     = false;
                btnClose.Enabled     = true;
                break;

            case Enum_VideoPlaybackState.Stopped:
                btnStartPlay.Enabled = true;
                btnPause.Enabled     = false;
                btnClose.Enabled     = false;
                break;

            case Enum_VideoPlaybackState.Playing:
                btnStartPlay.Enabled = false;
                btnPause.Enabled     = true;
                btnClose.Enabled     = true;
                break;
            }
        }
Exemple #2
0
        public void PlayProgressChanged(object sender, object objPlayProgressChangedValue)
        {
            VideoBackplayWindow v = (VideoBackplayWindow)sender;

            trackBar.Value = v.VideoProgresss;
            //label1.Text = v.VideoProgresss.ToString();
        }