Share via


Windows Media Player 11 SDK Settings.setModeĀ 

Windows Media Player SDK banner art

Previous Next

Settings.setMode

The setMode method sets various modes to active or inactive.

Syntax

  

Parameters

modeName

String specifying the name of the mode being changed, containing one of the following values.

String Description
autoRewind Mode indicating whether the tracks are rewound to the beginning after playing to the end. Default state is true.
loop Mode indicating whether the sequence of tracks repeats itself. Default state is false.
showFrame Mode indicating whether the nearest video key frame is displayed at the current position when not playing. Default state is false. Has no effect on audio tracks.
shuffle Mode indicating whether the tracks are played in random order. Default state is false.

state

Boolean specifying whether the new specified mode is active or not.

Return Values

This method does not return a value.

Remarks

When the showFrame mode is active, the Player must access the track content to retrieve the video frame. Due to bandwidth considerations, use this mode cautiously when playing non-local content.

Requirements

Version: For loop and shuffle modes, Windows Media Player version 7.0 or later. For autoRewind and showFrame modes, Windows Media Player 9 Series or later.

Library: Use wmp.dll.

See Also

Previous Next