Answers for "how to get the url of an audio file swift"

1

swift play audio stream from url

func loadRadio(radioURL: String) {

        guard let url = URL.init(string: radioURL) else { return }
        let playerItem = AVPlayerItem.init(url: url)
        player = AVPlayer.init(playerItem: playerItem)
        player?.play()
        startNowPlayingAnimation(true)
        played = true
    }
Posted by: Guest on March-24-2020

Code answers related to "how to get the url of an audio file swift"

Code answers related to "Swift"

Browse Popular Code Answers by Language