Documentation for Camera.getSupportedVideoSizes() that reads,
Returns
a list of the size object if the camera has a separate view and video output; otherwise null is returned.
not quite clear. However, this means that if Camera.getSupportedVideoSizes() returns null, then the preview sizes supported by the camera and video sizes are the same; in this case, use Camera.getSupportedPreviewSizes() to get a list of supported video sizes.
Code example:
public List<Size> getSupportedVideoSizes(Camera camera) { if (camera.getParameters().getSupportedVideoSizes() != null) { return camera.getParameters().getSupportedVideoSizes(); } else {
Shane creighton-young
source share