Converts a CMTime
to seconds.
SDKs
- iOS 4.0+
- macOS 10.7+
- Mac Catalyst 13.0+
- tvOS 9.0+
- watchOS 6.0+
Framework
- Core Media
Declaration
Parameters
time
CMTime
to be converted.
Return Value
The resulting Float64 number of seconds.
Discussion
If the CMTime
is invalid or indefinite, NaN is returned. If the CMTime
is infinite, +/- infinity is returned. If the CMTime
is numeric, epoch is ignored, and time.value / time.timescale is returned. The division is done in Float64, so the fraction is not lost in the returned result.