RocketSimApp icon indicating copy to clipboard operation
RocketSimApp copied to clipboard

Incorrect video recording orientation on iPad

Open raphkoebraam opened this issue 2 years ago • 2 comments

Describe the bug When recording a video in landscape on an iPad, the final orientation is not correct.

To Reproduce Steps to reproduce the behavior:

  1. Go to an iPad simulator
  2. Click on 'Record'
  3. Stop recording
  4. See that the video is upside down

Expected behavior The final video should be with the correct orientation.

Screenshots

Simulator Result

Desktop (please complete the following information):

  • OS: Sonoma
  • Version: 14.2.1 (23C71)

raphkoebraam avatar Jan 17 '24 08:01 raphkoebraam

Duplicate of #90

This is a known issue and something I can't fix. I filled feedback:

Run the following command from the terminal:

1. Open an iPad Simulator
2. Turn the iPad into landscape mode
3. Run `xcrun simctl io booted screenshot screenshot.png` in the terminal
4. Notice the screenshot is in portrait while it should be landscape

Anyone reading this

If you run into this issue as well, please duplicate FB13550695 and let Apple know you're waiting for a fix.

@peagasilva I'll keep this issue open an pin it to the repository.

AvdLee avatar Jan 19 '24 07:01 AvdLee

Somehow, I overlooked the Simulator is returning the proper orientation right now. I'm going to look into fixing this again!

Update The Simulator does it correctly, xcrun simctl does not 😓

test

AvdLee avatar Feb 28 '24 14:02 AvdLee

Just found this inside the user defaults

"FDBA62E7-CA64-4B55-A8E1-9F19988EA323" =         {
            ChromeTint = "";
            SimulatorExternalDisplay = 2114;
            SimulatorWindowGeometry =             {
                "0A03D92B-FBEF-4596-A865-FA28E2647118" =                 {
                    WindowCenter = "{945.5, 581.5}";
                    WindowScale = "0.6679447852760736";
                };
            };
            SimulatorWindowOrientation = LandscapeLeft;
            SimulatorWindowRotationAngle = 90;
        };

Might be able to solve this after all!

AvdLee avatar Jun 05 '24 07:06 AvdLee

So, I'm not able to read these user defaults, but I would be able to ask for permissions when a user tries to record in landscape mode 👌

AvdLee avatar Jun 11 '24 17:06 AvdLee

This will be fixed in 12.11.0

AvdLee avatar Jun 12 '24 12:06 AvdLee