You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It's currently not implemented, but since the AVAssetTimeSelector is mapping the asset Time to the ui element width, you could easily get it if you modify a bit that class.
currently you have:
func getTime(from position: CGFloat) -> CMTime? {
guard let asset = asset else {
return nil
}
let normalizedRatio = max(min(1, position / durationSize), 0)
let positionTimeValue = Double(normalizedRatio) * Double(asset.duration.value)
return CMTime(value: Int64(positionTimeValue), timescale: asset.duration.timescale)
}
So I guess that you could expose a method using that for the "smallest position increment" (i.e. 1 pixel or 1 point) and you'll get the corresponding minimal increment;
Is there an easy way to check the smallest increment/decrement to time a user can make with the handles?
The text was updated successfully, but these errors were encountered: