2014年4月3日

IOS AVAUDIOPLAYER 播放器使用

摘要: 1. 导入AVFoundation.framework2.导入头文件 #import 3.player = [[AVAudioPlayeralloc] initWithContentsOfURL:[NSURLfileURLWithPath:[[NSBundlemainBundle] pathForResource:@"music"ofType:@"mp3"]] error:nil]; [playerprepareToPlay]; player.enableRate = YES;//可以设置播放速录 player.rate = 2.0;//播放的速度 pl 阅读全文

posted @ 2014-04-03 21:43 景树园 阅读(868) 评论(0) 推荐(0)

导航