IMFMediaTimeRange::ContainsTime method (mfmediaengine.h)

Queries whether a specified time falls within any of the time ranges.

Syntax

BOOL ContainsTime(
  [in] double time
);

Parameters

[in] time

The time, in seconds.

Return value

Returns TRUE if any time range contained in this object spans the value of the time parameter. Otherwise, returns FALSE.

Remarks

This method returns TRUE if the following condition holds for any time range in the list:

start time time end

Requirements

Requirement Value
Minimum supported client Windows 8 [desktop apps | UWP apps]
Minimum supported server Windows Server 2012 [desktop apps | UWP apps]
Target Platform Windows
Header mfmediaengine.h

See also

IMFMediaTimeRange