Share via


MediaTransportControls.ThumbnailRequested Event

Definition

Occurs whenever the app needs to display a thumbnail adjacent to the seek bar when the user performs a seek operation.

// Register
event_token ThumbnailRequested(TypedEventHandler<MediaTransportControls, MediaTransportControlsThumbnailRequestedEventArgs const&> const& handler) const;

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

// Revoke with event_revoker
MediaTransportControls::ThumbnailRequested_revoker ThumbnailRequested(auto_revoke_t, TypedEventHandler<MediaTransportControls, MediaTransportControlsThumbnailRequestedEventArgs const&> const& handler) const;
public event TypedEventHandler<MediaTransportControls,MediaTransportControlsThumbnailRequestedEventArgs> ThumbnailRequested;
function onThumbnailRequested(eventArgs) { /* Your code */ }
mediaTransportControls.addEventListener("thumbnailrequested", onThumbnailRequested);
mediaTransportControls.removeEventListener("thumbnailrequested", onThumbnailRequested);
- or -
mediaTransportControls.onthumbnailrequested = onThumbnailRequested;
Public Custom Event ThumbnailRequested As TypedEventHandler(Of MediaTransportControls, MediaTransportControlsThumbnailRequestedEventArgs) 

Event Type

Windows requirements

Device family
Windows 10 Anniversary Edition (introduced in 10.0.14393.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v3.0)

Remarks

This event is raised only when the MediaTransportControls is used with a MediaPlayerElement. It is not raised when the MediaTransportControls are used with a MediaElement.

Applies to