Galaxy Camera records 320x480 video using ACTION_VIDEO_CAPTURE Intent

霸气de小男生 提交于 2019-12-12 02:40:02

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!