5
AVAssetExportSession
適用於iPhone 6及以下版本,但不適用於iPhone 7,iPhone 7 Plus模擬器。 Xcode 8.0AVAssetExportSession是零iPhone 7 - Plus模擬器
此代碼return nil
在exportSession中,當在iPhone 7 - Plus模擬器上執行時,但不在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");
這是雷達還是有東西我失蹤?
示例項目在:
https://github.com/rafaelpereznajera/AVAssetExportSessionRadar
iPhone 7是否包含示例文件? –
是的,文件退出,在iPhone 6上正常工作。您可以檢查github上的示例項目。 – rafaperez
這似乎破了。雖然'AVAssetExportPresetPassthrough'工程... –