AVAssetExportSession
funktioniert gut auf dem iPhone 6 und darunter, aber nicht auf dem iPhone 7, iPhone 7 Plus Simulator. Xcode 8.0AVAssetExportSession ist kein iPhone 7 - Plus Simulator
Dieser Code return nil
in exportSession, wenn auf iPhone 7 - Plus Simulator ausgeführt wird, aber nicht in iPhone SE, iPhone 6s ... Simulator. Finden Sie den folgenden Code für weitere Informationen.
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");
Es ist ein Radar oder da ist etwas, das ich vermisse ?.
Beispielprojekt an:
https://github.com/rafaelpereznajera/AVAssetExportSessionRadar
Enthält iPhone 7 Beispieldatei? –
Ja, die Datei wird beendet, funktioniert auf dem iPhone 6. Sie können das Beispielprojekt auf github überprüfen. – rafaperez
Das scheint kaputt zu sein. Obwohl 'AVAssetExportPresetPassthrough' funktioniert ... –