Compartilhar via


MediaElement.MediaEnded Evento

Definição

Ocorre quando o MediaElement termina de reproduzir áudio ou vídeo.

// Register
event_token MediaEnded(RoutedEventHandler const& handler) const;

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

// Revoke with event_revoker
MediaElement::MediaEnded_revoker MediaEnded(auto_revoke_t, RoutedEventHandler const& handler) const;
public event RoutedEventHandler MediaEnded;
function onMediaEnded(eventArgs) { /* Your code */ }
mediaElement.addEventListener("mediaended", onMediaEnded);
mediaElement.removeEventListener("mediaended", onMediaEnded);
- or -
mediaElement.onmediaended = onMediaEnded;
Public Custom Event MediaEnded As RoutedEventHandler 
<MediaElement MediaEnded="eventhandler" ../>

Tipo de evento

Aplica-se a