Parcourir la source

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

huzhiqiang il y a 3 ans
Parent
commit
2330271493

+ 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")!))
+        }
     }
 }