Closed dardaniaa0 closed 2 years ago
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
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