浏览代码

录音时禁止滑动;
滑动时重绘滚动条缩略图背景图
长度

harry 3 年之前
父节点
当前提交
167f56a9dd

+ 5 - 2
BFRecordScreenKit/Classes/RecordScreen/Controller/BFRecordScreenController.swift

@@ -855,6 +855,7 @@ public class BFRecordScreenController: BFBaseViewController {
             return
         }
         self.progressThumV.progressView.isUserInteractionEnabled = false
+        self.collectionView.isScrollEnabled = false
         pause()
         isRecording = true
         
@@ -899,7 +900,8 @@ public class BFRecordScreenController: BFBaseViewController {
         isRecording = false
         pause()
         self.progressThumV.progressView.isUserInteractionEnabled = true
-        
+        self.collectionView.isScrollEnabled = true
+
         recorderManager?.stopRecord(isCancel: false)
         
         if !avatarView.isHidden {
@@ -911,7 +913,8 @@ public class BFRecordScreenController: BFBaseViewController {
         isRecording = false
         recorderManager?.stopRecord(isCancel: true)
         self.progressThumV.progressView.isUserInteractionEnabled = true
-        
+        self.collectionView.isScrollEnabled = true
+
         pause()
     }
     

+ 7 - 0
BFRecordScreenKit/Classes/RecordScreen/View/BFVideoThumbProgressView.swift

@@ -107,6 +107,13 @@ class BFVideoThumbProgressView: UIView {
         self.addThumbImages(images: recordItem!.thumbImgs)
         if recordItem!.thumbImgs.count > 0{
             // 代表已经获取过了,不用在重新去获得
+            progessIndicateBackV.snp.remakeConstraints { make in
+                make.left.equalTo(width * 0.5)
+                make.right.equalTo(width * -0.5)
+                make.bottom.equalToSuperview()
+                make.height.equalTo(6)
+                make.width.equalTo(CGFloat(recordItem!.thumbImgs.count) * thumbImageWidth).priority(.high)
+            }
             return
         }