Windows Media Player 11 SDK External.OnChangeViewError Event
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 OnChangeViewError event occurs when a request to change the view in Windows Media Player results in an error. Script on the discovery page previously made the request to change the view by calling External.changeView.
window.external.OnChangeViewError = FunctionName
This is a write-only property that specifies the name of the function in script that Windows Media Player calls when the event occurs.
The function that handles this event takes the following parameters.
An HRESULT failure code that indicates the reason for the failure.
A String that specifies the type of the requested view. This is the same string that the script passed in the LibraryLocationType parameter of changeView.
A String that specifies the ID of the item to show in the requested view. This is the same string that the script passed in the LibraryLocationID parameter of changeView.
String containing the filter for the requested view. This is the same string that the script passed in the Filter parameter of changeView.
String containing parameters that the online store wants to associate with the requested view. This is the same string that the script passed in the ViewParams parameter of changeView.
Version: Windows Media Player 11.
Library: Use wmp.dll.