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 could i know when state of audio is still playing?

AlexGZC opened this issue · comments

How could i know when state of audio is still playing?

I tried with two function, but both doesnt work

func radioPlayer(_ player: FRadioPlayer, playerStateDidChange state: FRadioPlayerState) {
if state == .loadingFinished && !player.isPlaying{
print("ansdfhkdhf")
}
}

func radioPlayer(_ player: FRadioPlayer, playbackStateDidChange state: FRadioPlaybackState) {
    if state == .playing && !player.isPlaying{
        print("ansdfhkdhf")
    }
}