|
@@ -19,13 +19,23 @@ class BFVideoThumbProgressView: BFProgressBaseView {
|
|
// BFLog(1, message: "new recorditem")
|
|
// BFLog(1, message: "new recorditem")
|
|
progress = 0
|
|
progress = 0
|
|
if recordItem?.mediaType == .Video {
|
|
if recordItem?.mediaType == .Video {
|
|
- dealWithVideoThumb()
|
|
|
|
- recordItem?.fetchAVUrlAssetCallBack = {[weak self] in
|
|
|
|
|
|
+
|
|
|
|
+ DispatchQueue.main.async {[weak self] in
|
|
guard let wself = self else { return }
|
|
guard let wself = self else { return }
|
|
wself.dealWithVideoThumb()
|
|
wself.dealWithVideoThumb()
|
|
}
|
|
}
|
|
|
|
+ recordItem?.fetchAVUrlAssetCallBack = {[weak self] in
|
|
|
|
+ DispatchQueue.main.async {[weak self] in
|
|
|
|
+ guard let wself = self else { return }
|
|
|
|
+ wself.dealWithVideoThumb()
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+
|
|
} else if recordItem?.mediaType == .Image {
|
|
} else if recordItem?.mediaType == .Image {
|
|
- dealWithImageThumb()
|
|
|
|
|
|
+ DispatchQueue.main.async {[weak self] in
|
|
|
|
+ guard let wself = self else { return }
|
|
|
|
+ wself.dealWithImageThumb()
|
|
|
|
+ }
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|