Open AlexGZC opened 3 years ago
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") } }
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") } }