diff --git a/app/src/main/java/com/example/gsyvideoplayer/video/LandLayoutVideo.java b/app/src/main/java/com/example/gsyvideoplayer/video/LandLayoutVideo.java index df7387f0..d68f0709 100644 --- a/app/src/main/java/com/example/gsyvideoplayer/video/LandLayoutVideo.java +++ b/app/src/main/java/com/example/gsyvideoplayer/video/LandLayoutVideo.java @@ -11,9 +11,8 @@ import android.widget.ImageView; import com.example.gsyvideoplayer.R; -import com.shuyu.gsyvideoplayer.utils.Debuger; +import com.shuyu.gsyvideoplayer.utils.GSYVideoType; import com.shuyu.gsyvideoplayer.video.StandardGSYVideoPlayer; -import com.shuyu.gsyvideoplayer.video.base.GSYVideoControlView; import com.shuyu.gsyvideoplayer.video.base.GSYVideoPlayer; /** @@ -75,7 +74,7 @@ public void onLongPress(MotionEvent e) { public boolean onScale(ScaleGestureDetector detector) { scaleFactor *= detector.getScaleFactor(); scaleFactor = (scaleFactor < 1 ? 1 : scaleFactor); // prevent our view from becoming too small // - scaleFactor = ((float)((int)(scaleFactor * 100))) / 100; // Change precision to help with jitter when user just rests their fingers // + scaleFactor = ((float) ((int) (scaleFactor * 100))) / 100; // Change precision to help with jitter when user just rests their fingers // mTextureViewContainer.setScaleX(scaleFactor); mTextureViewContainer.setScaleY(scaleFactor); @@ -178,7 +177,7 @@ protected void changeUiToCompleteShow() { @Override public void onInfo(int what, int extra) { super.onInfo(what, extra); - if(mRotate != 0) { + if (mRotate != 0 && GSYVideoType.getRenderType() == GSYVideoType.GLSURFACE) { float[] rotationMatrix = new float[16]; Matrix.setIdentityM(rotationMatrix, 0); Matrix.rotateM(rotationMatrix, 0, -mRotate, 0, 0, 1); diff --git a/build.gradle b/build.gradle index 2b9a2f61..720e8092 100644 --- a/build.gradle +++ b/build.gradle @@ -12,6 +12,10 @@ buildscript { allprojects { repositories { + google() + mavenCentral() + maven { url "https://maven.aliyun.com/repository/public" } + maven { url "https://jitpack.io" } maven { url 'https://maven.pkg.github.com/CarGuo/GSYVideoPlayer' credentials { @@ -19,10 +23,6 @@ allprojects { password = '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' } } - google() - mavenCentral() - maven { url "https://maven.aliyun.com/repository/public" } - maven { url "https://jitpack.io" } } }