How to record in composed mode with the same resolution as the user's camera?

In individual mode it seems to record at the same resolution as the camera being used by default, but when i use composed mode it’s always rendering at 720p resolution, so if for example it’s being recorded on a portrait iphone the bottom of the video gets chopped off.

I have thought maybe i could get the camera settings on the front end and send them to the backend and start a recording, but originally i was using individual mode and the recording was set to start when the session was created, the front end doesn’t yet have access to the camera at that point as i create the connection using the REST api, return the token to the front end and then begin publishing at which point the recording has already started.

So is it the case where i am going to have to start publishing, get the camera settings, then start the recording via another REST call?