Share via


Windows Media Player 11 SDK External.OnSendMessageComplete EventĀ 

Windows Media Player SDK banner art

Previous Next

External.OnSendMessageComplete 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 OnSendMessageComplete event occurs when the online store has finished processing a message. Script on the discovery page previously sent the message by calling External.sendMessage.

Syntax

  window.external.OnSendMessageComplete = 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 event takes the following parameters.

Msg

String containing the message. This is the same string that the script passed in the Msg parameter of sendMessage.

Param

String containing the parameters for the message. This is the same string that the script passed in the Param parameter of sendMessage.

Result

String containing the result of the message handling. This string is not interpreted by Windows Media Player. It has meaning only to the online store.

Remarks

The sendMessage method calls IWMPContentPartner::SendMessage, which returns asynchronously. That is, it returns before the online store finishes processing the message. When the online store finishes processing the message, it calls IWMPContentPartnerCallback::SendMessageComplete, which in turn calls the script's OnSendMessageComplete event handler.

Requirements

Version: Windows Media Player 11.

Library: Use wmp.dll.

See Also

Previous Next