iPad Pro 12.9 6th Generation, wrong resolution from navigator.mediaDevices.getUserMedia()

Hello, I've been developing a web app which I need the front camera and need to take a picture at a higher resolution. But I have one issue. When I call navigator.mediaDevices.getUserMedia() in the browser to get the resolution of the camera, it shows it as 2052 x 2736. But it's a 12 MP front camera. I take a picture of myself using the camera app on the iPad and it shows 12 MP picture. The back camera reports it fine. You can also test it out on webcamtests.com to see the resolution.

iPad Pro 12.9 6th Generation, wrong resolution from navigator.mediaDevices.getUserMedia()
 
 
Q