How to forward 30 seconds
dardaniaa0 opened this issue · comments
Dardania commented
func radioPlayer(_ player: FRadioPlayer, playTimeDidChange currentTime: TimeInterval, duration: TimeInterval) {
guard !isSliderSliding else { return }
print("playTimeDidChange currentTime: (currentTime) totalTime: (duration)")
currentTimeLabel = formatSecondsToString(currentTime)
timeSlider = Float(currentTime / duration)
}
// Button
let increase = appPlayer.player.currentTime + 30
if increase < appPlayer.player.duration{
appPlayer.player.currentTime = increase
}
Skips the label timer but not audio.
Branch: FS