FRadioPlayer icon indicating copy to clipboard operation
FRadioPlayer copied to clipboard

How to forward 30 seconds

Open dardaniaa0 opened this issue 2 years ago • 0 comments

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

dardaniaa0 avatar Mar 26 '22 18:03 dardaniaa0