MediaPlayer.MediaEnded MediaPlayer.MediaEnded MediaPlayer.MediaEnded MediaPlayer.MediaEnded MediaPlayer.MediaEnded Event

Definition

Occurs when the media has finished playback.

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

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

// Revoke with event_revoker
MediaEnded_revoker MediaEnded(auto_revoke_t, TypedEventHandler<MediaPlayer, object> const& handler) const;
public event TypedEventHandler<MediaPlayer, object> MediaEnded
Public Event MediaEnded As TypedEventHandler (Of MediaPlayer, object)
function onMediaEnded(eventArgs){/* Your code */}


mediaPlayer.addEventListener("mediaended", onMediaEnded);
mediaPlayer.removeEventListener("mediaended", onMediaEnded);