void _videoPlayer_VideoError()
        {
            // Immediately hide the player
            _videoPlayer.Hide();

            _expired = true;
        }
Beispiel #2
0
        //private void _videoPlayer_FileEnd()
        //{
        //  _filesPlayed++;
        //}

        /// <summary>
        /// Video End event
        /// </summary>
        private void _videoPlayer_VideoEnd()
        {
            // Has the video finished playing
            if (_videoPlayer.FinishedPlaying)
            {
                Trace.WriteLine(new LogMessage("Video - _videoPlayer_VideoEnd", "End of video detected"), LogType.Audit.ToString());

                // Immediately hide the player
                _videoPlayer.Hide();

                _expired = true;
            }
        }