Share via


VideoTrack.OpenFailed Event

Definition

Occurs when a VideoTrack fails to open.

// Register
event_token OpenFailed(TypedEventHandler<VideoTrack, VideoTrackOpenFailedEventArgs const&> const& handler) const;

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

// Revoke with event_revoker
VideoTrack::OpenFailed_revoker OpenFailed(auto_revoke_t, TypedEventHandler<VideoTrack, VideoTrackOpenFailedEventArgs const&> const& handler) const;
public event TypedEventHandler<VideoTrack,VideoTrackOpenFailedEventArgs> OpenFailed;
function onOpenFailed(eventArgs) { /* Your code */ }
videoTrack.addEventListener("openfailed", onOpenFailed);
videoTrack.removeEventListener("openfailed", onOpenFailed);
- or -
videoTrack.onopenfailed = onOpenFailed;
Public Custom Event OpenFailed As TypedEventHandler(Of VideoTrack, VideoTrackOpenFailedEventArgs) 

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

Register for the OpenFailed event for a VideoTrack from within the VideoTracksChanged event handler for a MediaPlaybackItem, which is raised whenever a video track is added to the item.

Applies to