1
0
mirror of https://github.com/yattee/yattee.git synced 2024-12-13 13:50:32 +05:30
yattee/Extensions/CMTime+DefaultTimescale.swift

11 lines
278 B
Swift
Raw Normal View History

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)
}
}