CMTime from a Float64 number of seconds, and a preferred timescale.
- iOS 4.0+
- macOS 10.7+
- Mac Catalyst 13.0+
- tvOS 9.0+
- watchOS 6.0+
- Core Media
secondsfield of the resulting
preferredfield of the resulting
The epoch of the result will be zero. If
preferred is <= 0, the result will be an invalid
CMTime. If the preferred timescale will cause an overflow, the timescale will be halved repeatedly until the overflow goes away, or the timescale is 1. If it still overflows at that point, the result will be +/- infinity. The
has flag will be set if the result, when converted back to seconds, is not exactly equal to the original seconds value.