开发者

How to start and stop songs programmatically? [duplicate]

开发者 https://www.devze.com 2023-03-29 23:27 出处:网络
This question already has answers here: Closed 11 years ago. Possible Duplicate: How to play a so开发者_开发问答ng from the itunes library in iphone
This question already has answers here: Closed 11 years ago.

Possible Duplicate:

How to play a so开发者_开发问答ng from the itunes library in iphone

In my app,

I want to fetch songs from iPhone Library.

And want to play that song.

How do I fetch song?

And How to start and stop songs programmatically in my app?


  AVAudioPlayer *player = [[AVAudioPlayer alloc] initWithContentsOfURL:[NSURL URLWithString:recordFile] error:nil];
            [player prepareToPlay];
   [player play];

    [player pause];
0

精彩评论

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