AVAssetExportSession
działa poprawnie na iPhone 6 i poniżej, ale nie na iPhone 7, Symulator iPhone 7 Plus. Xcode 8.0AVAssetExportSession nie ma iPhone 7 - Symulator Plus
Ten kod return nil
w exportSession, kiedy jest wykonywany na iPhone 7 - Plus Simulator, ale nie w iPhone SE, iPhone 6s ... Simulator. Proszę znaleźć poniższy kod, aby uzyskać więcej informacji.
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");
To jest radar, czy jest coś, czego mi brakuje?
Przykładowy projekt w:
https://github.com/rafaelpereznajera/AVAssetExportSessionRadar
Czy iPhone 7 zawiera przykładowy plik? –
Tak, plik kończy działanie, działa poprawnie na iPhonie 6. Możesz sprawdzić przykładowy projekt na github. – rafaperez
To wydaje się zepsute. Chociaż 'AVAssetExportPresetPassthrough' działa ... –