|
@@ -36,6 +36,8 @@ class BFVideoThumbProgressView: BFProgressBaseView {
|
|
|
guard let wself = self else { return }
|
|
|
wself.dealWithImageThumb()
|
|
|
}
|
|
|
+
|
|
|
+
|
|
|
}
|
|
|
}
|
|
|
}
|
|
@@ -98,6 +100,7 @@ class BFVideoThumbProgressView: BFProgressBaseView {
|
|
|
|
|
|
/// 处理视频缩略图
|
|
|
func dealWithVideoThumb() {
|
|
|
+ BFLog(message: "这里是取缩略图的 走了几次?")
|
|
|
if recordItem?.videoAsset == nil && recordItem?.playItem == nil {
|
|
|
BFLog(message: "this is runing 视频数据有问题!!!!type \(String(describing: recordItem?.mediaType))")
|
|
|
addThumbImages(images: [UIImage]())
|
|
@@ -169,6 +172,7 @@ class BFVideoThumbProgressView: BFProgressBaseView {
|
|
|
/// 处理图片缩略图
|
|
|
func dealWithImageThumb() {
|
|
|
guard let image = (recordItem?.thumbImgs.first ?? recordItem?.coverImg) else {
|
|
|
+ BFLog(message: "原图啥也没有????")
|
|
|
addThumbImages(images: [UIImage]())
|
|
|
return
|
|
|
}
|
|
@@ -185,6 +189,7 @@ class BFVideoThumbProgressView: BFProgressBaseView {
|
|
|
subview.removeFromSuperview()
|
|
|
}
|
|
|
}
|
|
|
+ BFLog(message: "图片素材生成的缩略图个数为:\(images.count)")
|
|
|
if images.count > 0 {
|
|
|
if wself.lastImg != nil, wself.lastImg?.superview != nil {
|
|
|
wself.lastImg?.removeFromSuperview()
|