问题
I launch video capture intent on Galaxy Camera using below code:
Intent intent = new Intent(MediaStore.ACTION_VIDEO_CAPTURE);
intent.putExtra(MediaStore.EXTRA_VIDEO_QUALITY, 1); // With and without this, it yields same resolution
startActivityForResult(intent, 2);
and default video resolution turns out to be 320x240 @30fps. How do I change it to use highest possible video resolution i.e. 1920x1080
回答1:
How do I change it to use highest possible video resolution i.e. 1920x1080
Use MediaRecorder
directly. You cannot force a third-party camera app, whatever that app may be, to record at any particular resolution. While whatever app you are using should record at different resolutions for differing values of EXTRA_VIDEO_QUALITY
, there is no requirement that it do so.
来源:https://stackoverflow.com/questions/20922733/galaxy-camera-records-320x480-video-using-action-video-capture-intent