mirror of
https://github.com/yattee/yattee.git
synced 2024-09-19 17:01:32 +00:00
11 lines
278 B
Swift
11 lines
278 B
Swift
![]() |
import CoreMedia
|
||
|
import Foundation
|
||
|
|
||
|
extension CMTime {
|
||
|
static let defaultTimescale: CMTimeScale = 1_000_000
|
||
|
|
||
|
static func secondsInDefaultTimescale(_ seconds: TimeInterval) -> CMTime {
|
||
|
CMTime(seconds: seconds, preferredTimescale: CMTime.defaultTimescale)
|
||
|
}
|
||
|
}
|