Partager via


IDvdInfo2::GetTotalTitleTime

 
Microsoft DirectShow 9.0

IDvdInfo2::GetTotalTitleTime

The GetTotalTitleTime method retrieves the total playback time for the current title.

Syntax

  HRESULT GetTotalTitleTime(
  DVD_HMSF_TIMECODE *pTotalTime,
  ULONG *pulTimeCodeFlags
);

Parameters

pTotalTime

[out] Pointer to a variable of type DVD_HMSF_TIMECODE that receives the total time in hours, minutes, seconds, and frames.

pulTimeCodeFlags

[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.

Return Values

Returns one of the following HRESULT values.

Return code Description
S_OK Success.
E_POINTER Invalid argument.
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.

Remarks

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.

Requirements

Header: Declared in Strmif.h; include Dshow.h.

Library: Use Strmiids.lib.

See Also