[android-developers] Re: getSupportedPictureSizes() for video?
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 <ferob...@gmail.com> 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 android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home