Share via


MediaTimelineController.Failed Event

Definition

Occurs when the timeline controller encounters an internal error and can't continue playback.

// Register
event_token Failed(TypedEventHandler<MediaTimelineController, MediaTimelineControllerFailedEventArgs const&> const& handler) const;

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

// Revoke with event_revoker
MediaTimelineController::Failed_revoker Failed(auto_revoke_t, TypedEventHandler<MediaTimelineController, MediaTimelineControllerFailedEventArgs const&> const& handler) const;
public event TypedEventHandler<MediaTimelineController,MediaTimelineControllerFailedEventArgs> Failed;
function onFailed(eventArgs) { /* Your code */ }
mediaTimelineController.addEventListener("failed", onFailed);
mediaTimelineController.removeEventListener("failed", onFailed);
- or -
mediaTimelineController.onfailed = onFailed;
Public Custom Event Failed As TypedEventHandler(Of MediaTimelineController, MediaTimelineControllerFailedEventArgs) 

Event Type

Windows requirements

Device family
Windows 10 Creators Update (introduced in 10.0.15063.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v4.0)

Applies to