调用:
/**
* 6.3 播放背景音乐(高级版本)
*
* @param path 本地音乐文件路径
* @param beginNotify 播放开始的回调
* @param progressNotify 播放进度回调
* @param completeNotify 播放完毕回调
* @return YES:成功;NO:失败。
*/
- (BOOL) playBGM:(NSString *)path
withBeginNotify:(void (^)(NSInteger errCode))beginNotify
withProgressNotify:(void (^)(NSInteger progressMS,NSInteger durationMS))progressNotify
andCompleteNotify:(void (^)(NSInteger errCode))completeNotify;
播放失败,报错:
[E][TXCCaptureAndEnc.m, playBGM, 2201]:start bgm failed because recording not start yet!
原创声明:本文系作者授权腾讯云开发者社区发表,未经许可,不得转载。
如有侵权,请联系 cloudcommunity@tencent.com 删除。
原创声明:本文系作者授权腾讯云开发者社区发表,未经许可,不得转载。
如有侵权,请联系 cloudcommunity@tencent.com 删除。