소스 검색

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