|
@@ -119,7 +119,7 @@ class BFVideoThumbProgressView: UIView {
|
|
|
make.right.equalTo(width * -0.5)
|
|
|
make.bottom.equalToSuperview()
|
|
|
make.height.equalTo(6)
|
|
|
- make.width.equalTo(CGFloat(count) * thumbImageWidth)
|
|
|
+ make.width.equalTo(CGFloat(count) * thumbImageWidth).priority(.high)
|
|
|
}
|
|
|
|
|
|
let fps = Double(count) / dur
|
|
@@ -165,6 +165,7 @@ class BFVideoThumbProgressView: UIView {
|
|
|
if images.count > 0 {
|
|
|
// self?.thumbImgs = images
|
|
|
if let sself = self {
|
|
|
+ var lastImg = UIImageView()
|
|
|
for (i, img) in images.enumerated() {
|
|
|
let iv = UIImageView(image: img)
|
|
|
iv.contentMode = .scaleAspectFill
|
|
@@ -176,6 +177,12 @@ class BFVideoThumbProgressView: UIView {
|
|
|
make.height.equalTo(50)
|
|
|
make.width.equalTo(sself.thumbImageWidth)
|
|
|
}
|
|
|
+ lastImg = iv
|
|
|
+ }
|
|
|
+ if sself.recordItem?.mediaType == .IMAGE {
|
|
|
+ lastImg.snp.makeConstraints { make in
|
|
|
+ make.right.equalTo(sself.width * -0.5)
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
}
|