URL-type Commands

Windows Media Player SDK banner art

When the Windows Media Player control receives a URL-type command, the specified URL launches in the user's default browser. If the Windows Media Player control is embedded in an HTML file that uses frames, the URL can be launched in a frame specified by the script command. This allows the Windows Media Player control to continue rendering the multimedia stream in one frame, while the browser renders images or Web pages in another frame. If the script command does not specify a frame, the DefaultFrame property determines the frame in which the new URL is launched.

Note   If the HTML file does not use frames, or if the URL-type command is launched in the same frame as the Windows Media Player control, the URL specified by the script command replaces the page rendering the stream.

You can enable or disable automatic processing of URL-type script commands by setting the InvokeURLs property. If this property is false, the Windows Media Player control ignores URL-type commands. The ScriptCommand event is still sent to the container, however, allowing for conditional processing of URL-type commands.

URL-type commands specify the relative location of the URL. The BaseURL property specifies a base HTTP URL, which the Windows Media Player control concatenates with the relative URL. The result is a fully specified URL, passed as the command parameter of the ScriptCommand event.