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:
@ -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))
|
||||
}
|
||||
|
||||
@ -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)
|
||||
|
||||
Reference in New Issue
Block a user