AVAssetExportSession适用于iPhone 6及以下版本,但iPhone 7,iPhone 7 Plus模拟器无法正常工作.Xcode 8.0
这个代码return nil在exportSession中,在iPhone 7 - Plus Simulator上执行,但不在iPhone SE,iPhone 6s ...模拟器中执行.请查看以下代码以获取更多信息.
NSURL *inputURL = [[NSBundle mainBundle] URLForResource: @"example" withExtension:@"m4a"];
AVURLAsset *assetAV = [AVURLAsset URLAssetWithURL:inputURL options:nil];
AVAssetExportSession *exportSession = [[AVAssetExportSession alloc] initWithAsset:assetAV presetName:AVAssetExportPresetAppleM4A];
NSAssert(exportSession != nil, @"AVAssetExportSession must not be nil");
Run Code Online (Sandbox Code Playgroud)
这是一个雷达还是有一些我不知道的东西?
示例项目:
https://github.com/rafaelpereznajera/AVAssetExportSessionRadar