Finish cleaning up some refactors

This commit is contained in:
ronaldheft 2022-08-20 10:15:45 -04:00
parent 0f8672fb92
commit a461ed43de
2 changed files with 4 additions and 8 deletions

View file

@ -57,9 +57,9 @@ class PlayerHandler {
public static func startTickTimer() {
DispatchQueue.runOnMainQueue {
NSLog("Starting the tick timer")
timer?.invalidate()
playingTimer?.invalidate()
pausedTimer?.invalidate()
timer = Timer.scheduledTimer(withTimeInterval: 1, repeats: true) { _ in
playingTimer = Timer.scheduledTimer(withTimeInterval: 1, repeats: true) { _ in
self.tick()
}
}
@ -67,9 +67,9 @@ class PlayerHandler {
public static func stopTickTimer() {
NSLog("Stopping the tick timer")
timer?.invalidate()
playingTimer?.invalidate()
pausedTimer?.invalidate()
timer = nil
playingTimer = nil
}
private static func startPausedTimer() {

View file

@ -29,10 +29,6 @@ class PlayerProgress {
await UIApplication.shared.endBackgroundTask(backgroundToken)
}
private static func updateLocalSessionFromActivePlayer() {
}
private static func updateLocalMediaProgressFromLocalSession() {
guard let session = PlayerHandler.getPlaybackSession() else { return }
guard session.isLocal else { return }