DVD.isAvailable

[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 isAvailable property indicates whether a specified type of information is available or a specified action can be performed.

player.dvd.isAvailable(
        name
        )

Parameters

name

String containing one of the following values.

String Description
back Determines whether the back method is available.
dvd Determines whether the DVD is loaded.
dvdDecoder Determines whether the DVD decoder is installed on system.
resume Determines whether the resume method is available.
titleMenu Determines whether the titleMenu method is available.
topMenu Determines whether the topMenu method is available. Commonly called the root menu.

Return Values

This method returns a read-only Boolean indicating whether the specified parameter is available.

Remarks

The DVD features of Windows Media Player will not work on computers that do not have third-party DVD decoders installed. You can determine whether a decoder is available by calling isAvailable("dvdDecoder").

Every DVD is authored differently. The methods available during DVD playback and navigation depend on how the DVD is authored.

Windows Media Player 10 Mobile: This property always returns false.

Requirements

Requirement Value
Minimum supported client
Windows XP [desktop apps only]
Minimum supported server
Windows Server 2003 [desktop apps only]
Version
Windows Media Player for Windows XP or later
DLL
Wmp.dll

See also

DVD Object