Windows Media Player SDK banner art
PreviousNext

SLIDER.foregroundProgress

The foregroundProgress attribute specifies or retrieves the current position of the foreground progress bar as a percentage of the slider area.

Syntax

elementID.foregroundProgress

Possible Values

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

Example

<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”
/>

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.

See Also

PreviousNext


© 2000-2001 Microsoft Corporation. All rights reserved.