|
@@ -226,7 +226,8 @@ class BFRecordScreenCameraManager : BFRecordScreenBaseManager{
|
|
|
|
|
|
if FileManager.default.fileExists(atPath: vpath) {
|
|
|
if !su {
|
|
|
- if let finalPath = PQBridgeObject.p_setupFileRename(vpath), finalPath.count > 0 {
|
|
|
+ let newPath:String? = PQBridgeObject.p_setupFileRename(vpath)
|
|
|
+ if let finalPath = newPath, finalPath.count > 0 {
|
|
|
let dur = AVURLAsset(url: URL(fileURLWithPath: finalPath))
|
|
|
wself.videoModel.timelineCMOut = wself.videoModel.timelineCMIn + CMTime(seconds: dur.duration.seconds, preferredTimescale: 1000)
|
|
|
BFLog(1, message: "拍摄文件时长:\(wself.videoModel.timelineCMIn.seconds)~\(wself.videoModel.timelineCMOut.seconds), \(dur.duration.seconds)")
|