示例#1
0
 private void ButtonEndVerifyClick(object sender, EventArgs e)
 {
     if (MediaPlayerEnd != null && MediaPlayerEnd.VideoPlayer != null)
     {
         _endGoBackPosition = MediaPlayerEnd.CurrentPosition;
         _endStopPosition   = _endGoBackPosition + Configuration.Settings.Tools.VerifyPlaySeconds;
         MediaPlayerEnd.Play();
     }
 }
示例#2
0
        private void VideoEndLoaded(object sender, EventArgs e)
        {
            MediaPlayerEnd.Pause();
            GotoSubtitlePosition(MediaPlayerEnd);

            _endGoBackPosition = MediaPlayerEnd.CurrentPosition;
            _endStopPosition   = _endGoBackPosition + 0.1;
            MediaPlayerEnd.Play();

            if (AudioTrackNumber > -1 && MediaPlayerEnd.VideoPlayer is LibVlcDynamic)
            {
                var libVlc = (LibVlcDynamic)MediaPlayerEnd.VideoPlayer;
                libVlc.AudioTrackNumber = AudioTrackNumber;
            }
        }