From 9cd8ecd75bd1deb29b391e54f928c5d0d0d874c0 Mon Sep 17 00:00:00 2001 From: Jackson Harper Date: Mon, 17 Apr 2023 10:36:17 +0800 Subject: [PATCH] Use 15s as the default skip interval for text to speech --- .../Sources/App/Views/AudioPlayer/ExpandedPlayer.swift | 8 ++++---- .../Sources/Services/AudioSession/AudioController.swift | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/apple/OmnivoreKit/Sources/App/Views/AudioPlayer/ExpandedPlayer.swift b/apple/OmnivoreKit/Sources/App/Views/AudioPlayer/ExpandedPlayer.swift index 61abfaaa9..21942fa9c 100644 --- a/apple/OmnivoreKit/Sources/App/Views/AudioPlayer/ExpandedPlayer.swift +++ b/apple/OmnivoreKit/Sources/App/Views/AudioPlayer/ExpandedPlayer.swift @@ -296,9 +296,9 @@ .padding(.trailing, 32) Button( - action: { self.audioController.skipBackwards(seconds: 30) }, + action: { self.audioController.skipBackwards(seconds: 15) }, label: { - Image(systemName: "gobackward.30") + Image(systemName: "gobackward.15") .resizable() .font(Font.title.weight(.light)) } @@ -313,9 +313,9 @@ .foregroundColor(.themeDarkGray) Button( - action: { self.audioController.skipForward(seconds: 30) }, + action: { self.audioController.skipForward(seconds: 15) }, label: { - Image(systemName: "goforward.30") + Image(systemName: "goforward.15") .resizable() .font(Font.title.weight(.light)) } diff --git a/apple/OmnivoreKit/Sources/Services/AudioSession/AudioController.swift b/apple/OmnivoreKit/Sources/Services/AudioSession/AudioController.swift index 74d5a8af6..596aac3de 100644 --- a/apple/OmnivoreKit/Sources/Services/AudioSession/AudioController.swift +++ b/apple/OmnivoreKit/Sources/Services/AudioSession/AudioController.swift @@ -801,7 +801,7 @@ } commandCenter.skipForwardCommand.isEnabled = true - commandCenter.skipForwardCommand.preferredIntervals = [30, 60] + commandCenter.skipForwardCommand.preferredIntervals = [15, 30, 60] commandCenter.skipForwardCommand.addTarget { event -> MPRemoteCommandHandlerStatus in if let event = event as? MPSkipIntervalCommandEvent { self.skipForward(seconds: event.interval) @@ -811,7 +811,7 @@ } commandCenter.skipBackwardCommand.isEnabled = true - commandCenter.skipBackwardCommand.preferredIntervals = [30, 60] + commandCenter.skipBackwardCommand.preferredIntervals = [15, 30, 60] commandCenter.skipBackwardCommand.addTarget { event -> MPRemoteCommandHandlerStatus in if let event = event as? MPSkipIntervalCommandEvent { self.skipBackwards(seconds: event.interval)