|Microsoft DirectShow 9.0|
The GetTotalTitleTime method retrieves the total playback time for the current title.
HRESULT GetTotalTitleTime( DVD_HMSF_TIMECODE *pTotalTime, ULONG *pulTimeCodeFlags );
[out] Pointer to a variable of type DVD_HMSF_TIMECODE that receives the total time in hours, minutes, seconds, and frames.
[out] Pointer to a variable of type ULONG that receives a DVD_TIMECODE_FLAGS value indicating the frame rate at which the disc was authored to play. Specify NULL if you don't want to receive the timecode information.
Returns one of the following HRESULT values.
|VFW_E_DVD_INVALIDDOMAIN||The DVD Navigator is not in the title domain.|
|VFW_S_DVD_NON_ONE_SEQUENTIAL||The title is not a one sequential video title, so the timing information might not be continuous.|
The total title time is the time required to play the title sequentially, not counting any stills, pauses, and so on.
This method is for use only with one sequential video titles, which are titles such as movies in which each chapter automatically branches to the next chapter so that the entire title plays continuously without stopping. Nonsequential video titles are titles whose chapters do not automatically play one after another. Because of variations in how DVD authors encode time information on nonsequential video titles, do not use this method to determine the total time for such titles.
Header: Declared in Strmif.h; include Dshow.h.
Library: Use Strmiids.lib.