wenweiwei 3 rokov pred
rodič
commit
f101e164b2

+ 3 - 1
BFFramework/Classes/BFModules/BFUtility/PQSingletoVideoPlayer.swift

@@ -156,7 +156,9 @@ extension PQSingletoVideoPlayer: TXVodPlayListener {
     ///   - EvtID: <#EvtID description#>
     ///   - param: <#param description#>
     public func onPlayEvent(_ player: TXVodPlayer!, event: Int32, withParam param: [AnyHashable: Any]!) {
-        BFLog(message: "播放器状态回调:event:\(event),status:\(EventID(event)),param:\(param ?? [:])")
+        if event != PLAY_EVT_PLAY_PROGRESS.rawValue {
+            BFLog(message: "播放器状态回调:event:\(event),status:\(EventID(event)),param:\(param ?? [:])")
+        }
         switch event {
         case PLAY_EVT_PLAY_PROGRESS.rawValue: // 播放进度
             // 加载进度, 单位是秒

+ 4 - 1
BFFramework/Classes/Stuckpoint/View/PQStuckPointCuttingView.swift

@@ -198,11 +198,14 @@ class PQStuckPointCuttingView: UIView {
     /// - Returns: <#description#>
     func configVoiceFrequency() {
         let waveTotalCount = Int(videoDuration) / cFrequency.count
-        let remainder = Int(ceil(videoDuration - CGFloat(waveTotalCount * cFrequency.count)))
+        var remainder = Int(ceil(videoDuration - CGFloat(waveTotalCount * cFrequency.count)))
         var totalWave: [CGFloat] = Array<CGFloat>.init()
         for _ in 0 ..< waveTotalCount {
             totalWave = totalWave + cFrequency
         }
+        if remainder > cFrequency.count - 1 {
+            remainder = cFrequency.count - 1
+        }
         if remainder > 0 {
             totalWave = totalWave + cFrequency[0 ... remainder]
         }