I'm trying to understand what is the correct way to check if CMTime
is in range. Example:
let's assume we have a video, with a duration of 20 seconds. We split this video into two CMTimeRange
.
- from 0 seconds to 10
- from 10 seconds to 20
Now, for any given CMTime
(for example, the video progress). How can I determine in which CMTimeRange
a CMTime
Exists?