开发者

What's the best way to play a .mp3 in iPhone App ? [duplicate]

This question already has answers here: Closed 11 years ago.

Possible Duplicate:

Iphone sdk support for playing mp3 files over the network

I need to play a .mp3 in my iPhone app. The .mp3 is on a server, and I just have the U开发者_如何学GoRL of it. It would be nice if it could be played in a UIWebView. In any case I want to stay in my app, and stream it.


The easiest way is to use MPMoviePlayerController. Despite the name, it fully supports audio-only streaming.


What omz said.

Btw, this is a very nice article which gives an overview of the history of iDevice media APIs:

http://cocoawithlove.com/2011/03/history-of-ios-media-apis-iphone-os-20.html

It will give you some idea of the options available.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜