MediaPlayer.MediaOpened MediaPlayer.MediaOpened MediaPlayer.MediaOpened MediaPlayer.MediaOpened MediaPlayer.MediaOpened Event

Definition

Occurs when the media is opened.

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

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

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


mediaPlayer.addEventListener("mediaopened", onMediaOpened);
mediaPlayer.removeEventListener("mediaopened", onMediaOpened);