IDvdState interface (strmif.h)

[The feature associated with this page, DirectShow, is a legacy feature. It has been superseded by MediaPlayer, IMFMediaEngine, and Audio/Video Capture in Media Foundation. Those features have been optimized for Windows 10 and Windows 11. Microsoft strongly recommends that new code use MediaPlayer, IMFMediaEngine and Audio/Video Capture in Media Foundation instead of DirectShow, when possible. Microsoft suggests that existing code that uses the legacy APIs be rewritten to use the new APIs if possible.]

The IDvdState interface caches the current state.

The object that implements this interface is called a DVD bookmark. You can use it to save and restore the DVD state, which includes the playback location, the user's parental level, and the DVD region.

Inheritance

The IDvdState interface inherits from the IUnknown interface. IDvdState also has these types of members:

Methods

The IDvdState interface has these methods.

 
IDvdState::GetDiscID

The GetDiscID method retrieves the unique ID of the disc from which the bookmark was made.
IDvdState::GetParentalLevel

The GetParentalLevel method retrieves the user's parental level as saved in the DvdState object.

Remarks

To get the current DVD state information from the DVD Navigator, call IDvdInfo2::GetState. To restore the state, call IDvdControl2::SetState.

The DVD bookmark object also implements IPersistStream and IPersistMemory. You can use these interfaces to persist the state. You can also create an empty bookmark object by calling CoCreateInstance. The object's CLSID is CLSID_DVDState, defined in uuids.h.

Prior to Windows Vista, a bookmark can be used only on the same computer where it was created. Starting in Windows Vista, the DVD Navigator is able to create bookmarks that can be used other computers. To enable this feature, call IDvdControl2::SetOption with the DVD_EnablePortableBookmarks flag, before calling GetState or SetState.

Requirements

Requirement Value
Minimum supported client Windows XP [desktop apps only]
Minimum supported server Windows Server 2003 [desktop apps only]
Target Platform Windows
Header strmif.h (include Dshow.h)

See also

DVD Applications