|
|
@ -150,6 +150,11 @@ public class DeviceEncoders { |
|
|
|
" Desired:" + height + |
|
|
|
" Desired:" + height + |
|
|
|
" Range:" + mVideoCapabilities.getSupportedHeights()); |
|
|
|
" Range:" + mVideoCapabilities.getSupportedHeights()); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
if (!mVideoCapabilities.isSizeSupported(width, height)) { |
|
|
|
|
|
|
|
throw new RuntimeException("Size not supported for unknown reason." + |
|
|
|
|
|
|
|
" Might be an aspect ratio issue." + |
|
|
|
|
|
|
|
" Desired size:" + size); |
|
|
|
|
|
|
|
} |
|
|
|
Size adjusted = new Size(width, height); |
|
|
|
Size adjusted = new Size(width, height); |
|
|
|
LOG.i("getSupportedVideoSize -", "inputSize:", size, "adjustedSize:", adjusted); |
|
|
|
LOG.i("getSupportedVideoSize -", "inputSize:", size, "adjustedSize:", adjusted); |
|
|
|
return adjusted; |
|
|
|
return adjusted; |
|
|
|