视频的方向和当前app的方向无关

serial
BlueMatthew 1 year ago
parent 851a96553f
commit 38696edd58

@ -685,7 +685,8 @@ public class VideoFragment extends Fragment implements View.OnClickListener, Med
if (mOrientation != -1) {
orientationAdjustment = mOrientation / 90;
}
int rotation = (activity.getWindowManager().getDefaultDisplay().getRotation() + orientationAdjustment) % 4;
int rotation = activity.getWindowManager().getDefaultDisplay().getRotation();
rotation = orientationAdjustment % 4;
int orientationHint = 0;
switch (mSensorOrientation) {
case SENSOR_ORIENTATION_DEFAULT_DEGREES:

Loading…
Cancel
Save