Пример #1
0
 private void vlcplayer_Stopped(object sender, Vlc.DotNet.Core.VlcMediaPlayerStoppedEventArgs e)
 {
     SetTimerEnabled(false);
     if (this.Stopped != null)
     {
         this.Invoke(Stopped, this, e);
     }
 }
Пример #2
0
 private void MediaPlayer_Stopped(object sender, Vlc.DotNet.Core.VlcMediaPlayerStoppedEventArgs e)
 {
     this.VideoStoped();
 }
Пример #3
0
        private volatile bool closeForm = false; // volatile because the event comes from another thread, the VCL library.. and the timer will check it's value

        // The media has reached the end. So do close the form
        private void VlcControl_Stopped(object sender, Vlc.DotNet.Core.VlcMediaPlayerStoppedEventArgs e)
        {
            closeForm = true; // The PlayerForm can now be closed.
        }