>From the lack of responses I have to assume there is no easy way to query for supported video resolutions. So, I tried to obtain them with the hard way, namely going through some of the standard resolutions (e.g. CIF, HVGA, VGA, D1 etc.). I initialize a MediaRecorder object in a loop, providing in setVideoSize() the resolutions I want to test.
prepare() fails if I provide a dummy resolution like 456 x 123, but happily accepts 640 x 480 on a G1 (with Android 1.5). Of course, the final video ends up being 352 x 288 (max resolution on the G1). I don't want to allow the user to select a VGA resolution, if the camera is not capable capturing video at that resolution. Is there a way to test that a specific resolution is supported by the video camera? Thanks, Robert On Dec 22, 11:51 am, Robert <[email protected]> wrote: > Hello, > > In API 5 the Camera.Parameters class has getSupportedPictureSizes(). > But the returned values are too high to be used for video recording. > > Is there any way to similarly query for the supported video > resolutions? setVideoSize() expects valid width and height. > > Thanks, > Robert -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

