Evento Player.Error

[La funzionalità associata a questa pagina, Lettore multimediale Windows SDK, è una funzionalità legacy. È stata sostituita da MediaPlayer. MediaPlayer è stato ottimizzato per Windows 10 e Windows 11. Microsoft consiglia vivamente che il nuovo codice usi MediaPlayer anziché Lettore multimediale Windows SDK, quando possibile. Microsoft suggerisce che il codice esistente che usa le API legacy venga riscritto per usare le nuove API, se possibile.

L'evento Error si verifica quando si verifica una condizione di errore.

Sintassi

Player.Error()

Parametri

Questo evento non ha parametri.

Valore restituito

Questo evento non restituisce un valore.

Esempio

Nell'esempio JScript seguente viene creato un gestore eventi per visualizzare il testo della descrizione per il primo errore nella coda di errore. L'oggetto Player è stato creato con ID = "Player".

<SCRIPT LANGUAGE = "JScript"  FOR = Player  EVENT = error()>

// Get the description of the first error. 
var errDesc = Player.error.item(0).errorDescription;

// Display the error description.
alert(errDesc);

</SCRIPT>

Requisiti

Requisito Valore
Versione
Lettore multimediale Windows versione 7.0 o successiva.
DLL
Wmp.dll

Vedi anche

ErrorItem.errorDescription

Error.item

Oggetto Player