共用方式為


PlayState Property

 
Microsoft DirectShow 9.0

PlayState Property

This component is available for use in the Microsoft Windows 2000, Windows XP, and Windows Server 2003 operating systems. It may be altered or unavailable in subsequent versions.

The PlayState property retrieves the current state of the MSWebDVD object.

Syntax

[ iState = ] MSWebDVD.PlayState

Return Values

Returns an Integer value representing the current state of the DVD Navigator.

Return code Description
-2 Undefined
-1 Uninitialized
0 Stopped
1 Paused
2 Running

Remarks

This property is read-only with no default value.

The MSWebDVD object controls the DirectShow DVD Navigator filter, which does the actual work of DVD navigation. It is actually the state of the DVD Navigator that this property refers to. The DVD Navigator can be in one of several states, as described above. The PlayState property can be useful as a diagnostic tool, but generally there should be no reason for a scripting application to monitor the state of the DVD Navigator.