MediaElement.MediaEnded Event
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Occurs when the MediaElement finishes playing audio or video.
// 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" ../>
Event Type
Applies to
Opinia
https://aka.ms/ContentUserFeedback.
Dostępne już wkrótce: W 2024 r. będziemy stopniowo wycofywać zgłoszenia z serwisu GitHub jako mechanizm przesyłania opinii na temat zawartości i zastępować go nowym systemem opinii. Aby uzyskać więcej informacji, sprawdź:Prześlij i wyświetl opinię dla