External.OnChangeViewOnlineListError Event

[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.]

Note

This topic describes functionality designed for use by online stores. Use of this functionality outside the context of an online store is not supported.

The OnChangeViewOnlineListError event occurs when a call to the External.changeViewOnlineList method results in an error.

window.external.OnChangeViewOnlineListError = functionname

Possible Values

This is a write-only property that specifies the name of the function in script that Windows Media Player calls when the event occurs.

Parameters

The function that handles this error has the following parameters.

hr

An HRESULT failure code that indicates the reason for the failure.

LibraryLocationType

The same string that was passed in the LibraryLocationType parameter of changeViewOnlineList.

LibraryLocationID

The same string that was passed in the LibraryLocationID parameter of changeViewOnlineList.

Params

The same string that was passed in the Params parameter of changeViewOnlineList.

FriendlyName

The same string that was passed in the FriendlyName parameter of changeViewOnlineList.

ListType

The same string that was passed in the ListType parameter of changeViewOnlineList.

ViewMode

The same string that was passed in the ViewMode parameter of changeViewOnlineList.

Requirements

Requirement Value
Version
Windows Media Player 11
DLL
Wmp.dll

See also

External Object for Type 1 Online Stores