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