How can I open android video camera only HD mode?

Viewed 610

I want to open video camera with intent and take a video only HD mode.(Phone have Full HD, HD and TV(very low) mode). I just open video camera like above. But I cannot set any params in it.

Intent videoCapture = new Intent(MediaStore.ACTION_VIDEO_CAPTURE);
startActivityForResult(videoCapture, 1);

enter image description here

2 Answers

MediaStore.class

/** * The name of the Intent-extra used to control the quality of a recorded video. This is an * integer property. Currently value 0 means low quality, suitable for MMS messages, and * value 1 means high quality. In the future other quality levels may be added. */

public final static String EXTRA_VIDEO_QUALITY = "android.intent.extra.videoQuality";

I think there is no solution for now .s

You can use this to set parameters for your video capture :

Intent videoCapture = new Intent(MediaStore.ACTION_VIDEO_CAPTURE);
        videoCapture.putExtra(MediaStore.EXTRA_DURATION_LIMIT, 60); // Duration in Seconds
        videoCapture.putExtra(MediaStore.EXTRA_VIDEO_QUALITY, 1); // Quality High (0 : Quality Low)
        videoCapture.putExtra(MediaStore.Video.Thumbnails.HEIGHT, 320);
        videoCapture.putExtra(MediaStore.Video.Thumbnails.WIDTH, 240);

You can find more informations on the MediaStore page.

Hope it helps !

Related