Allow screen rotation while using ReplayKit recording

Originator:jan.sachse
Number:rdar://32978250 Date Originated:June 26 2017
Status:Closed Resolved:
Product:ReplayKit Product Version:
Classification: Reproducible:
 
Summary:
As soon as screen recording using RPScreenRecorder starts (either using startCapture or startRecording), the screen rotation is completely turned off. It should still be possible to rotate the screen and developers should get notified about the change, especially since it already is a solved problem for Apple, as the system wide recording from control center allows for screen rotation and adapts the video file appropriately.

Expected Results:
Users are able to rotate the app to their liking and if possible recording should continue, as it does using the iOS 11 system wide screen recording.

Here are some possible ways to go about this:
- Use the RPScreenRecorderDelegate to inform the app of changes to the recording and simply stop. The app would then have to restart recording after the orientation changed.
- Just continue recording as if nothing happened, like the iOS 11 system wide recording does, and automatically rotate the new screen orientation to fit the original resolution (i.e., if the recording started portrait on an iPhone, rotate the landscape images to fit the portrait video).
- Continue recording, but in case the startCapturing method with a handler called for each frame is used, simply use the new dimensions for the CMSampleBuffer and let the application decide how to proceed.

Observed Results:
Users can no longer rotate the app to different orientations.

--------------------------
Apple Developer Relations

There are no plans to address this based on the following:  

This is not something we can do for for startRecording. Because we use AVAssetWriter, which doesn’t allow us to change the transform after the assetWriter has started writing. Even if we get a rotated screen buffer, we wouldn’t be able to do that.   

We already have a bug report on passing back the transform for start capture/ broadcast, which will allow you to handle the transforms correctly.   

We are now closing this report.  If you have questions about the resolution, or if this is still a critical issue for you, then please update your bug report with that information.  

Please be sure to regularly check new Apple releases for any updates that might affect this issue.

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!