private void vlcplayer_Stopped(object sender, Vlc.DotNet.Core.VlcMediaPlayerStoppedEventArgs e) { SetTimerEnabled(false); if (this.Stopped != null) { this.Invoke(Stopped, this, e); } }
private void MediaPlayer_Stopped(object sender, Vlc.DotNet.Core.VlcMediaPlayerStoppedEventArgs e) { this.VideoStoped(); }
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. }