The resolution of the recorded video is set in accordance with CamcorderProfilewhich is transmitted to the object MediaRecorder. Profiles are identified by quality constants:CamcorderProfile.QUALITY_HIGH, CamcorderProfile.QUALITY_480P, etc.
The problem is that I cannot get a list of supported permissions / record profiles. I can use the method hasProfile, but it only checks if the given profile is supported, although I would prefer to have a complete list of such profiles.
There is a method in Camera.parameters, called getSupportedVideoSizes(), which should return what I need, but returns null, which, I think, means I should use instead getSupportedPreviewSizes(). But there is no match between the list of sizes and the preview profiles.
source
share