# C1.WPF.MediaPlayer.C1MediaPlayer.MediaFailed

## Content

<div class="doc-site-dotnet-api-container">




<h1 id="C1_WPF_MediaPlayer_C1MediaPlayer_MediaFailed" data-uid="C1.WPF.MediaPlayer.C1MediaPlayer.MediaFailed" class="text-break">MediaFailed Event
</h1>
<div class="markdown level0 summary"><p>Occurs when there is an error associated with the MediaSource of the current <a class="xref" href="C1.WPF.MediaPlayer.C1MediaItem.html">C1MediaItem</a>.</p>
</div>
<div class="markdown level0 conceptual"></div>
<h6><strong>Namespace</strong>: <a class="xref" href="C1.WPF.MediaPlayer.html">C1.WPF.MediaPlayer</a></h6>
<h6><strong>Assembly</strong>: C1.WPF.MediaPlayer.4.6.2.dll</h6>
<h5 id="C1_WPF_MediaPlayer_C1MediaPlayer_MediaFailed_syntax">Syntax</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public event EventHandler&lt;ExceptionEventArgs&gt; MediaFailed</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Event MediaFailed As EventHandler(Of ExceptionEventArgs)</code></pre>
</div>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.eventhandler-1">EventHandler</a>&lt;<a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.media.exceptioneventargs">ExceptionEventArgs</a>&gt;</td>
      <td>Occurs when there is an error associated with the MediaSource of the current .</td>
    </tr>
  </tbody>
</table>
</div>
