@Override public void onVideoSizeChanged(int width, int height, float pixelWidthAspectRatio) { videoFrame.setAspectRatio(height == 0 ? 1 : (width * pixelWidthAspectRatio) / height); }
@Override public void onVideoSizeChanged( int width, int height, int unappliedRotationDegrees, float pixelWidthAspectRatio) { shutterView.setVisibility(View.GONE); videoFrame.setAspectRatio(height == 0 ? 1 : (width * pixelWidthAspectRatio) / height); }