SLIDER.foregroundProgress

[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 foregroundProgress attribute specifies or retrieves the current position of the foreground progress bar as a percentage of the slider area.

        elementID.foregroundProgress

Possible Values

This attribute is a read/write Number (float) ranging from 0 to 100.

Remarks

This attribute is used primarily to track the download progress of a media file while simultaneously tracking the current play position of the file using the value attribute. The position of the slider thumb is constrained to the area of the foreground progress. This allows interactive seeking to take place only within the available portion of a downloading file.

To use this functionality, the useForegroundProgress attribute must be set to true.

Examples

<SLIDER
  id="seek"
  backgroundColor="blue"
  foregroundColor="red"
  thumbImage="seekthumb.bmp"
  min="0"
  max="wmpprop:player.currentMedia.duration"
  value="wmpprop:player.controls.currentPosition"
  useForegroundProgress="true"
  foregroundProgress="wmpprop:player.network.downloadProgress"
  ondragend="player.controls.currentposition=value"
/>

Requirements

Requirement Value
Version
Windows Media Player version 7.0 or later

See also

SLIDER Element

SLIDER.min

SLIDER.max

SLIDER.useForegroundProgress

SLIDER.value