IWMPControls (VB and C#) interface
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.
Members
The IWMPControls (VB and C#) interface has these types of members:
Methods
The IWMPControls (VB and C#) interface has these 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. |
Properties
The IWMPControls (VB and C#) interface has these properties.
Property | Access type | Description |
---|---|---|
currentItem |
Read/write |
Gets or sets the current media item in a playlist. |
currentMarker |
Read/write |
Gets or sets the current marker number. |
currentPosition |
Read/write |
Gets or sets the current position in the media item in seconds from the beginning. |
currentPositionString |
Read-only |
Gets the current position in the media item as a System.String. |
isAvailable |
Read-only |
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. |
Get an IWMPControls interface by using the following property.
Object | Property |
---|---|
AxWindowsMediaPlayer Object | Ctlcontrols |
Requirements
Requirement | Value |
---|---|
Header |
|