AvdLee / RocketSimApp

Enhancing the iOS simulator for productivity
570 stars 20 forks source link

Incorrect video recording orientation on iPad #452

Closed peagasilva closed 3 weeks ago

peagasilva commented 5 months ago

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):

AvdLee commented 5 months ago

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 commented 4 months ago

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 commented 1 month ago

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 commented 3 weeks ago

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 commented 3 weeks ago

This will be fixed in 12.11.0