Skip to content

Commit

Permalink
fix(notification): update rate in notification when rate changes (#66)
Browse files Browse the repository at this point in the history
  • Loading branch information
dcvz authored Oct 19, 2023
1 parent 77fb2b8 commit 9ebbd99
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion SwiftAudioEx/Classes/AudioPlayer.swift
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,12 @@ public class AudioPlayer: AVPlayerWrapperDelegate {

public var rate: Float {
get { wrapper.rate }
set { wrapper.rate = newValue }
set {
wrapper.rate = newValue
if (automaticallyUpdateNowPlayingInfo) {
updateNowPlayingPlaybackValues()
}
}
}

// MARK: - Init
Expand Down

0 comments on commit 9ebbd99

Please sign in to comment.