Share via


Windows Media Player 11 SDK IWMPControls Interface (VB and C#) 

Windows Media Player SDK banner art

Previous Next

IWMPControls Interface (VB and C#)

Provides a way to manipulate the playback of a media item by representing the transport controls of Windows Media Player, such as Play, Stop, and Pause.

The IWMPControls interface exposes the following properties.

Property Description
currentItem Gets or sets the current media item in a playlist.
currentMarker Gets or sets the current marker number.
currentPosition Gets or sets the current position in the media item in seconds from the beginning.
currentPositionString Gets the current position in the media item as a System.String.
isAvailable Gets a value indicating whether a specified type of information is available or a specified action can be performed. In C#, this is the get_isAvailable method.

The IWMPControls interface exposes the following methods.

Method Description
fastForward Starts fast play of the media item in the forward direction.
fastReverse Starts fast play of the media item in the reverse direction.
next Sets the next item in the playlist as the current item.
pause Pauses playback of the media item.
play Begins playback of the current media item, or resumes playback of a paused item.
playItem Plays the specified media item.
previous Sets the previous item in the playlist as the current item.
stop Stops playback of the media item.

Get an IWMPControls interface by using the following property.

Object Property
AxWindowsMediaPlayer Object Ctlcontrols

See Also

Previous Next