以下是我上传歌曲文件“ https://soundcloud.com/smkumar84/summa ”的链接。从这里我需要在我的 iphone 应用程序中播放音乐。
我怎样才能在我的 iphone 应用程序中做到这一点?
以下是我上传歌曲文件“ https://soundcloud.com/smkumar84/summa ”的链接。从这里我需要在我的 iphone 应用程序中播放音乐。
我怎样才能在我的 iphone 应用程序中做到这一点?
从 soundcloud 查看 ios的api。和Apple 关于 HTTP 流的指南。
soundcloud API 支持
Apple 关于 HTTP 实时流的示例可用于通过 HTTP 流式传输音频和视频。这也适用于没有太多设置的普通服务器。
您可以使用 AVPlayer/AVAudioPlayer 播放歌曲。检查 AVAudioPlayer API。
https://developer.apple.com/documentation/avfoundation/avaudioplayer