我的电台 URL 是 http://s2.yesstreaming.net:7091/stream而且我无法在我的 Xcode 项目中播放此 URL。
最佳答案
你可以使用 VLCKit为了它。 我已经测试过,它处理给定的链接。
我不知道您是用 Swift 还是 Objective-C 编写代码,但这里有一个非常简单的 Swift 示例。
let mediaPlayer = VLCMediaPlayer()
mediaPlayer.media = VLCMedia(url: "http://s2.yesstreaming.net:7091/stream")
// outputView is the view where you want to display the stream
mediaPlayer.drawable = outputView
mediaPlayer.play()
关于ios - 如何在 iOS 中播放 Live Radio Streaming URL 的 URL,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49665141/