私のアプリでは、AVCapture/AssetsLibrary を使用してビデオを録画および保存します。ポートレートで録画すると、録画されたビデオの向きは問題ありませんが、ランドスケープで録画すると、録画されたビデオの向きが 90 度になります。これについて助けが必要です。発行してください。私のコードは..
私のappDelegate.mで
- (NSUInteger)application:(UIApplication *)application supportedInterfaceOrientationsForWindow:(UIWindow *)window{
    NSUInteger orientations = UIInterfaceOrientationMaskAllButUpsideDown;
    if(self.window.rootViewController){
        UIViewController *presentedViewController = [[(UINavigationController *)self.window.rootViewController viewControllers] lastObject];
        orientations = [presentedViewController supportedInterfaceOrientations];
    }
    return orientations;
}
そして myViewController.m で
- (NSUInteger)supportedInterfaceOrientations{
    return UIInterfaceOrientationMaskPortrait;
}
キャプチャ セッションの向き
AVCaptureConnection *CaptureConnection = [MovieFileOutput connectionWithMediaType:AVMediaTypeVideo];
if ([CaptureConnection isVideoOrientationSupported])
{
    AVCaptureVideoOrientation orientation = AVCaptureVideoOrientationPortrait;
    [CaptureConnection setVideoOrientation:orientation];
}
ありがとう、
