Merge branch 'master' into bug-ios-background-currenttime

This commit is contained in:
ronaldheft
2022-08-22 18:04:02 -04:00
17 changed files with 285 additions and 64 deletions
+4
View File
@@ -220,6 +220,8 @@ class AudioPlayer: NSObject {
// MARK: - Methods
public func play(allowSeekBack: Bool = false) {
guard self.isInitialized() else { return }
if allowSeekBack {
let diffrence = Date.timeIntervalSinceReferenceDate - lastPlayTime
var time: Int?
@@ -262,6 +264,8 @@ class AudioPlayer: NSObject {
}
public func pause() {
guard self.isInitialized() else { return }
self.audioPlayer.pause()
self.status = 0
self.rate = 0.0