Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
CarGuo committed Jan 2, 2025
1 parent 466bced commit da7a2cc
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;

/**
Expand Down Expand Up @@ -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);

Expand Down Expand Up @@ -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);
Expand Down
8 changes: 4 additions & 4 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -12,17 +12,17 @@ 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 {
username = 'carsmallguo'
password = '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'
}
}
google()
mavenCentral()
maven { url "https://maven.aliyun.com/repository/public" }
maven { url "https://jitpack.io" }
}
}

Expand Down

0 comments on commit da7a2cc

Please sign in to comment.