Contents Index Topic Contents | |
Previous Topic: EndOfStream Next Topic: KeyDown |
Error Event
Occurs when the Microsoft® Windows Media™ Player control has an error condition.
Syntax
JScript <SCRIPT FOR="MediaPlayer" EVENT="Error( )" LANGUAGE="JScript"> //insert script commands// </SCRIPT>VBScript <SCRIPT LANGUAGE="VBScript"> Sub MediaPlayer_Error( ) //insert script commands// End Sub </SCRIPT>Remarks
Use this event to trap errors. This event occurs when the Windows Media Player control reports an error during playback. To process the error in your script, use the Microsoft Visual Basic® Err object or the Windows Media Player control ErrorCode, ErrorCorrection, and ErrorDescription properties.
Top of Page
© 1999 Microsoft and/or its suppliers. All rights reserved. Terms of Use.