Merge pull request #2060 from omnivore-app/feat/improve-tts-skip-intervals

Use 15s as the default skip interval for text to speech
This commit is contained in:
Jackson Harper
2023-04-17 10:58:07 +08:00
committed by GitHub
2 changed files with 6 additions and 6 deletions

View File

@ -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))
}

View File

@ -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)