MediaPlayer.MediaFailed | mediafailed event

Applies to Windows Phone only

Occurs when an error is encountered.

Syntax


function onMediaFailed(eventArgs) { /* Your code */ }
 
// addEventListener syntax
mediaPlayer.addEventListener("mediafailed", onMediaFailed);
mediaPlayer.removeEventListener("mediafailed", onMediaFailed);
 
- or -

mediaPlayer.onmediafailed = onMediaFailed;


Event information

Delegate TypedEventHandler<MediaPlayer, MediaPlayerFailedEventArgs>

Requirements

Minimum supported client

None supported

Minimum supported server

None supported

Minimum supported phone

Windows Phone 8.1 [Windows Runtime apps only]

Namespace

Windows.Media.Playback
Windows::Media::Playback [C++]

Metadata

Windows.winmd

See also

MediaPlayer

 

 

Community Additions

ADD
Show:
© 2014 Microsoft