Returns the result of multiplying a
CMTime by an integer, then dividing by another integer.
- iOS 7.1+
- macOS 10.10+
- UIKit for Mac 13.0+Beta
- tvOS 9.0+
- watchOS 6.0+Beta
- Core Media
CMTimeto be multiplied then divided.
The value by which to multiply.
The value by which to divide.
A value equal to
(time * multiplier) / divisor.
The exact rational value will be preserved, if possible without overflow. If an overflow would occur, a new timescale will be chosen so as to minimize the rounding error. Default rounding will be applied when converting the result to this timescale. If the result value still overflows when timescale == 1, then the result will be either positive or negative infinity, depending on the direction of the overflow.
If any rounding occurs for any reason, the result's
k flag will be set. This flag will also be set if the
CMTime operand has
If the denominator, and either the time or the numerator, are zero, the result will be
k. If only the denominator is zero, the result will be either
k, depending on the signs of the other arguments.
If time is invalid, the result will be invalid. If time is infinite, the result will be similarly infinite. If time is indefinite, the result will be indefinite.