Explorar o código

视频素材进度绘制错误问题

harry %!s(int64=3) %!d(string=hai) anos
pai
achega
6a68b12ad5

+ 7 - 1
BFRecordScreenKit/Classes/RecordScreen/Controller/BFRecordScreenController.swift

@@ -1008,7 +1008,13 @@ public class BFRecordScreenController: BFBaseViewController {
                 changeWithDrawBtnLayout(false)
             }
             searchStopAtRecordRange()
-            indirectionView?.resetAllSubViews(items: itemModels[currItemModelIndex].voiceStickers, percenWidth: progressThumV.thumbImageWidth / 2.0, totalDuration: itemModels[currItemModelIndex].materialDuraion)
+            
+            let itemModel = itemModels[currItemModelIndex]
+            if itemModel.mediaType == .IMAGE{
+                indirectionView?.resetAllSubViews(items: itemModels[currItemModelIndex].voiceStickers, percenWidth: progressThumV.thumbImageWidth / 2.0, totalDuration: itemModels[currItemModelIndex].materialDuraion)
+            }else {
+                
+            }
 
         }
     }