自己写的 播放器sdk:
AVPlayer类
初始化 首先设置url 如果是在线播放即播放链接 本地播放即本地路径(
[NSURL fileURLWithPath:[[NSBundle mainBundle]pathForResource:@"sound" ofType:@"m4a"]]
)这个方法获取,还可以设置block属性 方便在合适的时机调用soundsPlayerView同上
AVPlayer类
初始化 首先设置url 如果是在线播放即播放链接 本地播放即本地路径(
[NSURL fileURLWithPath:[[NSBundle mainBundle]pathForResource:@"sound" ofType:@"m4a"]]
)这个方法获取,还可以设置block属性 方便在合适的时机调用soundsPlayerView同上