修复bug

This commit is contained in:
zjx 2025-06-06 10:00:34 +08:00
parent 6a6a19b4a8
commit b3ff8fb010

View File

@ -169,9 +169,9 @@ class SPPlayer: NSObject {
func start() { func start() {
self.isPlaying = true self.isPlaying = true
if self.interruptionType != .began { // if self.interruptionType != .began {
player.play() // }
} player.play()
UIApplication.shared.isIdleTimerDisabled = true UIApplication.shared.isIdleTimerDisabled = true
self.addIdleTimerDisabledObserver() self.addIdleTimerDisabledObserver()