CMTimeUtils is a Swift library designed to simplify working with CMTime
and CMTimeRange
in Apple's Core Media framework. It provides utility functions for common operations such as splitting time ranges, calculating midpoints, and generating strides of CMTime
values.
CMTimeUtils is available through Swift Package Manager.
- Add the following dependency to your
Package.swift
file:
dependencies: [
.package(url: "https://github.com/skyfe79/CMTimeUtils.git", from: "0.0.1")
]
- Run
swift build
to build the project.
CMTimeUtils is distributed under the MIT license. See the LICENSE file for more details.