IWMPControls interface (wmp.h)
[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 IWMPControls interface provides a way to manipulate the playback of a media item.
Inheritance
The IWMPControls interface inherits from the IDispatch interface. IWMPControls also has these types of members:
Methods
The IWMPControls interface has these methods.
IWMPControls::fastForward The fastForward method starts fast play of the media item in the forward direction. |
IWMPControls::fastReverse The fastReverse method starts fast play of the media item in the reverse direction. |
IWMPControls::get_currentItem The get_currentItem method retrieves the current media item in a playlist. |
IWMPControls::get_currentMarker The get_currentMarker method retrieves the current marker number. |
IWMPControls::get_currentPosition The get_currentPosition method retrieves the current position in the media item in seconds from the beginning. |
IWMPControls::get_currentPositionString The get_currentPositionString method retrieves the current position in the media item as a BSTR formatted as HH:MM:SS (hours, minutes, and seconds). |
IWMPControls::get_isAvailable The get_isAvailable method indicates whether a specified type of information is available or a specified action can be performed. |
IWMPControls::next The next method sets the next item in the playlist as the current item. |
IWMPControls::pause The pause method pauses playback of the media item. |
IWMPControls::play The play method causes the current media item to start playing, or resumes play of a paused item. |
IWMPControls::playItem The playItem method plays the specified media item. |
IWMPControls::previous The previous method sets the previous item in the playlist as the current item. |
IWMPControls::put_currentItem The put_currentItem method specifies the current media item. |
IWMPControls::put_currentMarker The put_currentMarker method specifies the current marker number. |
IWMPControls::put_currentPosition The put_currentPosition method specifies the current position in the media item in seconds from the beginning. |
IWMPControls::stop The stop method stops playback of the media item. |
Requirements
Requirement | Value |
---|---|
Target Platform | Windows |
Header | wmp.h |