MediaPlayer.MediaFailed MediaPlayer.MediaFailed MediaPlayer.MediaFailed MediaPlayer.MediaFailed MediaPlayer.MediaFailed Event

Definition

Occurs when an error is encountered.

public : event TypedEventHandler<MediaPlayer, MediaPlayerFailedEventArgs> MediaFailed
// Register
event_token MediaFailed(TypedEventHandler<MediaPlayer, MediaPlayerFailedEventArgs> const& handler) const;

// Revoke with event_token
void MediaFailed(event_token const& cookie) const;

// Revoke with event_revoker
MediaFailed_revoker MediaFailed(auto_revoke_t, TypedEventHandler<MediaPlayer, MediaPlayerFailedEventArgs> const& handler) const;
public event TypedEventHandler<MediaPlayer, MediaPlayerFailedEventArgs> MediaFailed
Public Event MediaFailed As TypedEventHandler (Of MediaPlayer, MediaPlayerFailedEventArgs)
function onMediaFailed(eventArgs){/* Your code */}


mediaPlayer.addEventListener("mediafailed", onMediaFailed);
mediaPlayer.removeEventListener("mediafailed", onMediaFailed);