Windows Media Player 11 SDK IWMPSettings::setModeĀ
Previous | Next |
IWMPSettings::setMode
The setMode method sets the state of playback options.
Syntax
Parameters
bstrMode
[in] BSTR containing one of the following values.
Value | Description |
autoRewind | Tracks are restarted at the beginning after playing to the end. Default state is true. |
loop | The sequence of tracks repeats itself. Default state is false. |
showFrame | The nearest video keyframe is displayed when not playing. Default state is false. Has no effect on audio tracks. |
shuffle | Tracks are played in random order. Default state is false. |
varfMode
[in] VARIANT_BOOL specifying whether the specified mode is active.
Return Values
The method returns an HRESULT. Possible values include, but are not limited to, those in the following table.
Return code | Description |
S_OK | The method succeeded. |
Remarks
When the showFrame mode is active, Windows Media Player must access the track content to retrieve the video frame. Use this mode cautiously when playing non-local content.
Requirements
Version: Windows Media Player 9 Series or later.
Header: Include wmp.h.
Library: Use wmp.dll.
See Also
Previous | Next |