다음을 통해 공유


MediaPlayer.MediaFailed 이벤트

정의

오류가 발생할 때 발생합니다.

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

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

// Revoke with event_revoker
MediaPlayer::MediaFailed_revoker MediaFailed(auto_revoke_t, TypedEventHandler<MediaPlayer, MediaPlayerFailedEventArgs const&> const& handler) const;
public event TypedEventHandler<MediaPlayer,MediaPlayerFailedEventArgs> MediaFailed;
function onMediaFailed(eventArgs) { /* Your code */ }
mediaPlayer.addEventListener("mediafailed", onMediaFailed);
mediaPlayer.removeEventListener("mediafailed", onMediaFailed);
- or -
mediaPlayer.onmediafailed = onMediaFailed;
Public Custom Event MediaFailed As TypedEventHandler(Of MediaPlayer, MediaPlayerFailedEventArgs) 

이벤트 유형

적용 대상