Skip to content

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

@AlexGZC

Description

@AlexGZC

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions