Condividi tramite


AudioTrack.OpenFailed Evento

Definizione

Si verifica quando un AudioTrack non riesce ad aprire.

// 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) 

Tipo evento

Requisiti Windows

Famiglia di dispositivi
Windows 10 Anniversary Edition (è stato introdotto in 10.0.14393.0)
API contract
Windows.Foundation.UniversalApiContract (è stato introdotto in v3.0)

Commenti

Registrare l'evento OpenFailed per un audioTrack dall'interno del gestore eventi AudioTracksChanged per un oggetto MediaPlaybackItem, generato ogni volta che viene aggiunta una traccia audio all'elemento.

Si applica a