fethica / FRadioPlayer

A simple radio player framework for iOS, macOS, tvOS.

Home Page:https://fethica.github.io/FRadioPlayer/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How to forward 30 seconds

dardaniaa0 opened this issue · 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