Exemplo n.º 1
0
        private void MyVlcControl_EncounteredError(object sender, Vlc.DotNet.Core.VlcMediaPlayerEncounteredErrorEventArgs e)
        {
            VlcControl vlc = (VlcControl)sender;

            vlcOverlay[int.Parse(vlc.Name.Split()[2])].ShowNotification("Error");

            log.Error(string.Format("Error encountered on '{0}': {1}", vlc.Name, e.ToString()));

            //MessageBox.Show(string.Format("Error encountered on '{0}':\n{1}", vlc.Name, e.ToString()), "VLC Control Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
            vlc.UseWaitCursor = false;
        }
Exemplo n.º 2
0
 private void MediaPlayer_EncounteredError(object sender, Vlc.DotNet.Core.VlcMediaPlayerEncounteredErrorEventArgs e)
 {
     Console.WriteLine(e.ToString());
 }
Exemplo n.º 3
0
 private void vlcControl1_EncounteredError(object sender, Vlc.DotNet.Core.VlcMediaPlayerEncounteredErrorEventArgs e)
 {
     MessageBox.Show("An error occurred", "Playing video failed?", MessageBoxButtons.OK, MessageBoxIcon.Error);
 }
Exemplo n.º 4
0
 private void MediaPlayer_EncounteredError(object sender, Vlc.DotNet.Core.VlcMediaPlayerEncounteredErrorEventArgs e)
 {
 }
Exemplo n.º 5
0
 private void player_EncounteredError(object sender, Vlc.DotNet.Core.VlcMediaPlayerEncounteredErrorEventArgs e)
 {
     MessageBox.Show(e.ToString());
 }