iOS_多媒体(2)音频播放AVPlayer
2013-11-22 21:10
579 查看
// //播放远程地址 // NSString *path=@"http://sc.111ttt.com/up/mp3/136928/122EE9E93EE1D35DECA6B83934B65BA3.mp3"; // NSURL *url=[NSURL URLWithString:path]; // // AVPlayer *avPlay1=[[AVPlayer alloc]initWithURL:url]; // [avPlay1 play]; //播放本地 NSString *filePath=[[NSBundle mainBundle]pathForResource:@"感谢" ofType:@"MP3"]; NSURL *url=[NSURL fileURLWithPath:filePath]; avPlay=[[AVPlayer alloc]initWithURL:url]; [avPlay play];
相关文章推荐
- iOS Dev (21) 用 AVPlayer 播放一个本地音频文件
- 【iOS沉思录】:iOS多媒体音频(上)-音频播放
- iOS AvPlayer AvAudioPlayer音频的后台播放问题
- iOS AvPlayer AvAudioPlayer音频的后台播放问题
- iOS AvPlayer AvAudioPlayer音频的后台播放问题
- iOS AvPlayer AvAudioPlayer音频的后台播放
- iOS音频篇:使用AVPlayer播放网络音乐
- iOS音频篇:使用AVPlayer播放网络音乐
- 【iOS沉思录】:iOS多媒体音频(下)-录音及其播放
- iOS 多媒体(1)——音频的播放
- iOS AvPlayer AvAudioPlayer音频的后台播放问题
- iOS - 使用AVPlayer播放音频、视频
- iOS多媒体播放音乐AVAudioPlayer和AVPlayer
- iOS AvPlayer AvAudioPlayer音频的后台播放问题
- iOS AvPlayer AvAudioPlayer音频的后台播放问题
- iOS AvPlayer AvAudioPlayer音频的后台播放问题
- 在IOS中使用AVPlayer去播放在线音频文件,并设置音量
- IOS开发:多媒体-音频的操作(一) 短声音的播放
- iOS 多媒体(一)音频播放
- iOS AvPlayer AvAudioPlayer音频的后台播放问题