let time = TimeInterval(asset.duration.seconds) if (time.isNaN || time.isInfinite){ print("无效文件 time.recordDuration.isNaN || time.recordDuration.isInfinite ssssssss") self.isInvalid = true }
参考:
https://www.jianshu.com/p/ac50c3466cd1
https://qa.1r1g.com/sf/ask/2940004301/