Κοινή χρήση μέσω


ErrorItem 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 ErrorItem object provides a way to access error information.

The ErrorItem object supports the following properties.

Property Description
condition Retrieves a value indicating the condition for the error.
customUrl Retrieves the URL of a website that displays specific information about codec download failure.
errorCode Retrieves the current error code.
errorContext Retrieves a value indicating the context of the error.
errorDescription Retrieves a description of the error.
remedy Reserved for future use.

 

The ErrorItem object is accessed through the following methods.

Object Method
Error item
Media error

 

For purposes of illustration, player.error.item(index) is used in the reference syntax sections.

See also

Object Model Reference for Scripting