Partager via


IWMPSettings (VB and C#) interface

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

Provides properties and methods that get or set the values of Windows Media Player settings.

The IWMPSettings interface exposes the following properties.

Members

The IWMPSettings (VB and C#) interface has these types of members:

Methods

The IWMPSettings (VB and C#) interface has these methods.

Method Description
getMode Returns a value indicating whether loop mode or shuffle mode is active.
setMode Sets the loop mode or shuffle mode to active or inactive.

Properties

The IWMPSettings (VB and C#) interface has these properties.

Property Access type Description
autoStart
Read/write
Gets or sets a value indicating whether the current media item begins playing automatically.
balance
Read/write
Gets or sets the current stereo balance.
baseURL
Read/write
Gets or sets the base URL used for relative path resolution with URL script commands that are embedded in digital media content.
defaultFrame
Read/write
Gets or sets the name of the frame used to display a URL that is received in a scriptCommand event.
enableErrorDialogs
Read/write
Gets or sets a value indicating whether error dialog boxes are displayed automatically.
invokeURLs
Read/write
Gets or sets a value indicating whether URL events should launch a Web browser.
isAvailable
Read-only
Gets a value indicating whether a specified action can be performed. In C#, this is the get_isAvailable method.
mute
Read/write
Gets or sets a value indicating whether audio is muted.
playCount
Read/write
Gets or sets the number of times a media item will play.
rate
Read/write
Gets or sets the current playback rate for video.
volume
Read/write
Gets or sets the current playback volume.

Get an IWMPSettings interface by using the following property.

Object Property
AxWindowsMediaPlayer Object settings

Requirements

Requirement Value
Header
Wmp.h

See also

Interfaces for Visual Basic .NET and C#

IWMPSettings2 Interface (VB and C#)