Function

CMTimeRangeContainsTime

Indicates whether a time is contained within a time range.

Declaration

Boolean CMTimeRangeContainsTime(CMTimeRange range, CMTime time);

Parameters

range

CMTimeRange being interrogated.

time

CMTime to be tested for inclusion.

Return Value

Returns true if the specified time is contained within the specified time range, false if it is not.

Discussion

This function returns a Boolean value that indicates whether the time specified by the time parameter is contained within the range specified by the range parameter.

See Also

Comparing Time Ranges

CMTimeRangeEqual

Returns a Boolean value that indicates whether two CMTimeRanges are identical.

CMTimeRangeContainsTimeRange

Returns a Boolean that indicates whether a given time range is contained within another time range.