CMTime from a
Double number of seconds, and a preferred timescale.
- iOS 7.0+
- macOS 10.9+
- Mac Catalyst 13.0+
- tvOS 9.0+
- watchOS 6.0+
- Xcode 7.1+
- Core Media
valuefield of the resulting CMTime.
preferredfield of the resulting CMTime.
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.