AudioTrack.OpenFailed AudioTrack.OpenFailed AudioTrack.OpenFailed AudioTrack.OpenFailed AudioTrack.OpenFailed Event

Definition

Occurs when an AudioTrack fails to open.

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

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

// Revoke with event_revoker
OpenFailed_revoker OpenFailed(auto_revoke_t, TypedEventHandler<AudioTrack, AudioTrackOpenFailedEventArgs> const& handler) const;
public event TypedEventHandler<AudioTrack, AudioTrackOpenFailedEventArgs> OpenFailed
Public Event OpenFailed As TypedEventHandler (Of AudioTrack, AudioTrackOpenFailedEventArgs)
function onOpenFailed(eventArgs){/* Your code */}


audioTrack.addEventListener("openfailed", onOpenFailed);
audioTrack.removeEventListener("openfailed", onOpenFailed);

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.