
谢谢
解决方法Nsstring *tempfilePath = [NstemporaryDirectory() stringByAppendingPathComponent:@"tmp.mp3"];NSfileManager *manager = [NSfileManager defaultManager];[manager createfileAtPath:tempfilePath contents:mp3Data attributes:nil];AVURLAsset *asset = [[AVURLAsset alloc] initWithURL:[NSURL fileURLWithPath:tempfilePath] options:nil];dispatch_after(dispatch_time(disPATCH_TIME_Now,(int64_t)(2 * NSEC_PER_SEC)),dispatch_get_main_queue(),^{ [manager removeItemAtPath:tempfilePath error:nil]; }); 总结 以上是内存溢出为你收集整理的Cocoa:来自原始数据的AVAsset(即NSData)全部内容,希望文章能够帮你解决Cocoa:来自原始数据的AVAsset(即NSData)所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
微信扫一扫
支付宝扫一扫
评论列表(0条)