瀏覽代碼

fix:缓冲完毕后判断是否播放状态,修改icon

huzhiqiang 3 年之前
父節點
當前提交
2330271493
共有 1 個文件被更改,包括 3 次插入1 次删除
  1. 3 1
      BFFramework/Classes/Stuckpoint/View/PQStuckPointMusicContentCell.swift

+ 3 - 1
BFFramework/Classes/Stuckpoint/View/PQStuckPointMusicContentCell.swift

@@ -249,6 +249,8 @@ class PQStuckPointMusicContentCell: UICollectionViewCell {
     
     func stopLoadingAnimation(){
         playImageView.layer.removeAllAnimations()
-        playImageView.kf.setImage(with: URL(fileURLWithPath: Bundle().BF_mainbundle().path(forResource: "stuckPoint_music_playing", ofType: ".gif")!))
+        if (bgmData as? PQVoiceModel)?.isPlaying ?? false {
+            playImageView.kf.setImage(with: URL(fileURLWithPath: Bundle().BF_mainbundle().path(forResource: "stuckPoint_music_playing", ofType: ".gif")!))
+        }
     }
 }