@Override
 public void onVideoSizeChanged(int width, int height, float pixelWidthAspectRatio) {
   videoFrame.setAspectRatio(height == 0 ? 1 : (width * pixelWidthAspectRatio) / height);
 }
Esempio 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);
 }