Error Object

[The feature associated with this page, Windows Media Player SDK, is a legacy feature. It has been superseded by MediaPlayer. MediaPlayer has been optimized for Windows 10 and Windows 11. Microsoft strongly recommends that new code use MediaPlayer instead of Windows Media Player SDK, when possible. Microsoft suggests that existing code that uses the legacy APIs be rewritten to use the new APIs if possible.]

The Error object provides access to a collection of ErrorItem objects.

The Error object supports the following property.

Property Description
errorCount Retrieves the number of errors in the error queue.

 

The Error object supports the following methods.

Method Description
clearErrorQueue Clears the errors from the error queue.
item Retrieves an ErrorItem object from the error queue.
webHelp Launches the Windows Media Player Web Help page to display further information about the error.

 

The Error object is accessed through the following property.

Object Property
Player error

 

See also

Object Model Reference for Scripting