Closed HatsuneMikuV closed 2 years ago
The value of d should also be adjusted. By default, the export operation is performed, which is not necessary.
现在没想到更好的方法去做数值对比,后面加一个0.01的误差判断
round(d) == round(CGFloat(self.avAsset.duration.seconds)) ,it's work
round(8.5) 和 round(9.49) 会有一秒的误差~
The value of d should also be adjusted. By default, the export operation is performed, which is not necessary.