How to control video capture properties in android?

陌路散爱 提交于 2019-12-23 15:52:17

问题


I am capturing video using the following intent:

Intent takeVideoIntent = new Intent(MediaStore.ACTION_VIDEO_CAPTURE);
 if (takeVideoIntent.resolveActivity(getPackageManager()) != null) {
       takeVideoIntent.putExtra(MediaStore.EXTRA_VIDEO_QUALITY, 1);
       takeVideoIntent.putExtra(MediaStore.EXTRA_DURATION_LIMIT, 10);
       startActivityForResult(takeVideoIntent, VIDEO_CAPTURE_INTENT);
    }

I need to control two things, first its frames sizes with the given height/width and secondly I want to capture the video without audio.

来源:https://stackoverflow.com/questions/32477547/how-to-control-video-capture-properties-in-android

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