Share via


IWMPSettings::invokeURLs property

[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 invokeURLs property gets or sets a value indicating whether URL events should launch a Web browser.

Syntax

public System.Boolean invokeURLs {get; set;}

Public Property invokeURLs As System.Boolean

Property value

A System.Boolean value indicating whether URL events should launch a Web browser. The default is true.

Remarks

Digital media files and streams can contain URL script commands. When a URL script command is sent to the Windows Media Player control, it is passed first to the AxWindowsMediaPlayer_WMPOCXEvents_ScriptCommandEvent event handler regardless of the value retrieved by invokeURLs. After _WMPOCXEvents_ScriptCommandEvent exits, Windows Media Player checks invokeURLs to determine whether to launch the default Web browser with the URL. You can selectively display URLs by checking them in _WMPOCXEvents_ScriptCommandEvent and setting invokeURLs as desired.

Requirements

Requirement Value
Version
Windows Media Player 9 Series or later
Namespace
WMPLib
Assembly
Interop.WMPLib.dll (Interop.WMPLib.dll.dll)

See also

AxWindowsMediaPlayer.ScriptCommand Event (VB and C#)

IWMPSettings Interface (VB and C#)