Ejemplo n.º 1
0
        /// <summary>
        /// Invokes the MediaFailed event, notifying any subscriber that there was
        /// a media exception.
        /// </summary>
        /// <param name="e">The MediaFailedEventArgs contains the exception that caused this event to fire</param>
        protected void InvokeMediaFailed(MediaFailedEventArgs e)
        {
            var mediaFailedHandler = MediaFailed;

            if (mediaFailedHandler != null)
            {
                mediaFailedHandler(this, e);
            }
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Invokes the MediaFailed event, notifying any subscriber that there was
        /// a media exception.
        /// </summary>
        /// <param name="e">The MediaFailedEventArgs contains the exception that caused this event to fire</param>
        protected void InvokeMediaFailed(MediaFailedEventArgs e)
        {
            logger.FatalException(e.Message, e.Exception);

            var mediaFailedHandler = MediaFailed;

            if (mediaFailedHandler != null)
            {
                mediaFailedHandler(this, e);
            }
        }
Ejemplo n.º 3
0
 /// <summary>
 /// Invokes the MediaFailed event, notifying any subscriber that there was
 /// a media exception.
 /// </summary>
 /// <param name="e">The MediaFailedEventArgs contains the exception that caused this event to fire</param>
 protected void InvokeMediaFailed(MediaFailedEventArgs e)
 {
     var mediaFailedHandler = MediaFailed;
     if (mediaFailedHandler != null)
         mediaFailedHandler(this, e);
 }
Ejemplo n.º 4
0
 private void MediaUriElement_MediaFailed(object sender, WPFMediaKit.DirectShow.MediaPlayers.MediaFailedEventArgs e)
 {
     this.Dispatcher.BeginInvoke(new Action(() => errorText.Text = e.Message));
 }
Ejemplo n.º 5
0
        /// <summary>
        /// Invokes the MediaFailed event, notifying any subscriber that there was
        /// a media exception.
        /// </summary>
        /// <param name="e">The MediaFailedEventArgs contains the exception that caused this event to fire</param>
        protected void InvokeMediaFailed(MediaFailedEventArgs e)
        {
            logger.FatalException(e.Message,e.Exception);

            var mediaFailedHandler = MediaFailed;
            if (mediaFailedHandler != null)
                mediaFailedHandler(this, e);
        }
Ejemplo n.º 6
0
 private void CameraCaptureElement_MediaFailed(object sender, WPFMediaKit.DirectShow.MediaPlayers.MediaFailedEventArgs e)
 {
     //MessageBox.Show("CameraFailed");
 }
Ejemplo n.º 7
0
 void Player_MediaFailed(object sender, WPFMediaKit.DirectShow.MediaPlayers.MediaFailedEventArgs e)
 {
     MessageBox.Show(e.Exception + "\n" + e.Message);
 }
Ejemplo n.º 8
0
 private void mediaElement_MediaFailed(object sender, WPFMediaKit.DirectShow.MediaPlayers.MediaFailedEventArgs e)
 {
     // TODO: don't raise for minor playback errors.
     this.RaisePreviewFailed();
 }