Windows Media Player SDK banner art
PreviousNext

Controls Object

The Controls object provides a way to manipulate the playback of media using the following properties and methods.

The Controls object supports the following properties.

Property Description
currentItem Specifies or retrieves the current media item.
currentMarker Specifies or retrieves the current marker number.
currentPosition Specifies or retrieves the current position in the media item in seconds from the beginning.
currentPositionString Retrieves the current position in the media item as a String.

The Controls object supports the following methods.

Method Description
fastForward Starts fast play of the media item in the forward direction.
fastReverse Starts fast play of the media item in the reverse direction.
isAvailable Determines whether a specified type of information is available or a given action can be performed.
next Sets the current item to the next item in the playlist.
pause Pauses the playing of the media item.
play Causes the media item to start playing.
playItem Causes the current media item to start playing, or resumes play of a paused item.
previous Sets the current item to the previous item in the playlist.
stop Stops the playing of the media item.

The Controls object is accessed through the following property.

Object Property
Player controls

PreviousNext


© 2000-2001 Microsoft Corporation. All rights reserved.