AVAssetExportSession video not saving as portrait orientation
问题 I want to record on video in custom view so I'm using AVFoundation as per below code. if ([library videoAtPathIsCompatibleWithSavedPhotosAlbum:outputFileURL]) { /** Below code works fine (save in portrait orientation) [library writeVideoAtPathToSavedPhotosAlbum:outputFileURL completionBlock:^(NSURL *assetURL, NSError *error) { if (!error) { self.doneButton.userInteractionEnabled = YES; [videoAddr addObject:assetURL]; videoURL = outputFileURL; } }];*/ AVMutableComposition *mixComposition = [