diff --git a/gsyVideoPlayer-java/src/main/java/com/shuyu/gsyvideoplayer/video/base/GSYVideoControlView.java b/gsyVideoPlayer-java/src/main/java/com/shuyu/gsyvideoplayer/video/base/GSYVideoControlView.java index 3760c4038398045562e8f57b06d1c40959abc359..84897044f8daa6ed09305a594bd4cf5029737795 100644 --- a/gsyVideoPlayer-java/src/main/java/com/shuyu/gsyvideoplayer/video/base/GSYVideoControlView.java +++ b/gsyVideoPlayer-java/src/main/java/com/shuyu/gsyvideoplayer/video/base/GSYVideoControlView.java @@ -317,7 +317,7 @@ public abstract class GSYVideoControlView extends GSYVideoView implements View.O cancelProgressTimer(); getGSYVideoManager().releaseMediaPlayer(); releasePauseCover(); - mBuffterPoint = 0; + mBufferPoint = 0; mSaveChangeViewTIme = 0; } if (mAudioManager != null) { @@ -599,7 +599,7 @@ public abstract class GSYVideoControlView extends GSYVideoView implements View.O if (mCurrentState != CURRENT_STATE_NORMAL && mCurrentState != CURRENT_STATE_PREPAREING) { if (percent != 0) { setTextAndProgress(percent); - mBuffterPoint = percent; + mBufferPoint = percent; Debuger.printfLog("Net speed: " + getNetSpeedText() + " percent " + percent); } if (mProgressBar == null) { @@ -807,7 +807,7 @@ public abstract class GSYVideoControlView extends GSYVideoView implements View.O startButtonLogic(); } else if (mCurrentState == CURRENT_STATE_PLAYING) { try { - getGSYVideoManager().pause(); + onVideoPause(); } catch (Exception e) { e.printStackTrace(); } diff --git a/gsyVideoPlayer-java/src/main/java/com/shuyu/gsyvideoplayer/video/base/GSYVideoView.java b/gsyVideoPlayer-java/src/main/java/com/shuyu/gsyvideoplayer/video/base/GSYVideoView.java index cc79711bf567d26d4e5556df6657e85bcc10eced..860aa8ebb497c2b2b616e39786513a13364f542b 100644 --- a/gsyVideoPlayer-java/src/main/java/com/shuyu/gsyvideoplayer/video/base/GSYVideoView.java +++ b/gsyVideoPlayer-java/src/main/java/com/shuyu/gsyvideoplayer/video/base/GSYVideoView.java @@ -68,7 +68,7 @@ public abstract class GSYVideoView extends GSYTextureRenderView implements GSYMe protected int mScreenHeight; //缓存进度 - protected int mBuffterPoint; + protected int mBufferPoint; //备份缓存前的播放状态 protected int mBackUpPlayingBufferState = -1; @@ -945,7 +945,7 @@ public abstract class GSYVideoView extends GSYTextureRenderView implements GSYMe * 缓冲进度/缓存进度 */ public int getBuffterPoint() { - return mBuffterPoint; + return mBufferPoint; } /** diff --git a/gsyVideoPlayer/build.gradle b/gsyVideoPlayer/build.gradle index f67e264e06c35f0c2d81f048b65bf1753a4eeda5..9d12dbb9bbf5ad46be74354fe9ce80d9789bd9a5 100644 --- a/gsyVideoPlayer/build.gradle +++ b/gsyVideoPlayer/build.gradle @@ -31,7 +31,7 @@ android { dependencies { implementation fileTree(dir: 'libs', include: ['*.jar']) - //api project(':gsyVideoPlayer-java') + api project(':gsyVideoPlayer-java') //api project(':gsyVideoPlayer-armv5') //api project(':gsyVideoPlayer-armv7a') //api project(':gsyVideoPlayer-armv64') @@ -43,7 +43,7 @@ dependencies { //api "com.shuyu:GSYVideoPlayer:$gsyVideoVersion" - api "com.shuyu:gsyVideoPlayer-java:$gsyVideoVersion" + //api "com.shuyu:gsyVideoPlayer-java:$gsyVideoVersion" api "com.shuyu:gsyVideoPlayer-armv5:$gsyVideoVersion" api "com.shuyu:gsyVideoPlayer-armv7a:$gsyVideoVersion" api "com.shuyu:gsyVideoPlayer-arm64:$gsyVideoVersion"