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")
}
}