Android examples for android.media:Video
get Default Video Profile
import android.media.CamcorderProfile; public class Main { public static CamcorderProfile getDefaultVideoProfile(int cameraId) { final int[] qualities = { CamcorderProfile.QUALITY_HIGH, CamcorderProfile.QUALITY_1080P, CamcorderProfile.QUALITY_720P, CamcorderProfile.QUALITY_480P, CamcorderProfile.QUALITY_CIF, CamcorderProfile.QUALITY_LOW };/*w ww . j a v a 2s .c om*/ for (int quality : qualities) { if (CamcorderProfile.hasProfile(cameraId, quality)) { return CamcorderProfile.get(cameraId, quality); } } return null; } }