Windows Media Player SDK banner art
PreviousNext

Controls.isAvailable

The isAvailable method determines whether a specified type of information is available or a given action can be performed.

Syntax

player.controls.isAvailable(name)

Parameters

  name

String containing one of the following values.

String Description
Play Determines whether the play method is available.
Pause Determines whether the pause method is available.
Stop Determines whether the stop method is available.
FastForward Determines whether the file supports fast forwarding and whether that functionality can be invoked. Many file types (or live streams) do not support FastForward.
FastReverse Determines whether the file supports FastReverse and whether that functionality can be invoked. Many file types (or live streams) do not support FastReverse.
Next Determines whether the user can seek to the next entry in a playlist.
Previous Determines whether the user can seek to the previous entry in a playlist.
CurrentMarker Determines whether the user can seek to a specific named marker. Only valid for a file which has markers.
CurrentPosition Determines whether the user can seek to a specific position in the file. Some files do not support seeking.
CurrentItem Determines whether the user can set the currentItem property.

Return Values

This method returns a Boolean value.

See Also

PreviousNext


© 2000-2001 Microsoft Corporation. All rights reserved.