Note

Access to this page requires authorization. You can try signing in or .

Access to this page requires authorization. You can try .

AudioTrack.OpenFailed Event

Definition

Namespace:
Windows.Media.Core

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 an AudioTrack fails to open.

// Register
event_token OpenFailed(TypedEventHandler<AudioTrack, AudioTrackOpenFailedEventArgs const&> const& handler) const;

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

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

Event Type

Windows requirements

Requirements Description
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 an AudioTrack from within the AudioTracksChanged event handler for a MediaPlaybackItem, which is raised whenever an audio track is added to the item.

Applies to


Feedback

Was this page helpful?