CAMediaTiming protocol models a hierarchical timing system, with each object describing the mapping of time values from the object's parent to local time.
- iOS 8.0+
- macOS 10.10+
- tvOS 9.0+
Absolute time is defined as mach time converted to seconds. The
CACurrentMediaTime() function is provided as a convenience for getting the current absolute time.
The conversion from parent time to local time has two stages:
Conversion to “active local time”. This includes the point at which the object appears in the parent object's timeline and how fast it plays relative to the parent.
Conversion from “active local time” to “basic local time”. The timing model allows for objects to repeat their basic duration multiple times and, optionally, to play backwards before repeating.