Windows Media Player 11 SDK Controls.isAvailable
Previous | Next |
Controls.isAvailable
The isAvailable property indicates whether a specified type of information is available or a specified action can be performed.
Syntax
Parameters
name
String containing one of the following values.
String | Description |
currentItem | Determines whether the user can set the currentItem property. |
currentMarker | Determines whether the user can seek to a specific marker. |
currentPosition | Determines whether the user can seek to a specific position in the file. Some files do not support seeking. |
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. |
pause | Determines whether the pause method is available. |
play | Determines whether the play method is available. |
previous | Determines whether the user can seek to the previous entry in a playlist. |
step | Determines whether the step method is available during playback. |
stop | Determines whether the stop method is available. |
Return Values
This method returns a Boolean value.
Example Code
The following example creates an HTML BUTTON element that seeks to the starting position of the current media item. The JScript code uses isAvailable to verify that the file supports the seek operation. The Player object was created with ID = "Player".
Requirements
Version: Windows Media Player version 7.0 or later.
Library: Use wmp.dll.
See Also
Previous | Next |