提交 90cfe04b 编写于 作者: S shuyu

change click pause

上级 5ca84e5c
...@@ -317,7 +317,7 @@ public abstract class GSYVideoControlView extends GSYVideoView implements View.O ...@@ -317,7 +317,7 @@ public abstract class GSYVideoControlView extends GSYVideoView implements View.O
cancelProgressTimer(); cancelProgressTimer();
getGSYVideoManager().releaseMediaPlayer(); getGSYVideoManager().releaseMediaPlayer();
releasePauseCover(); releasePauseCover();
mBuffterPoint = 0; mBufferPoint = 0;
mSaveChangeViewTIme = 0; mSaveChangeViewTIme = 0;
} }
if (mAudioManager != null) { if (mAudioManager != null) {
...@@ -599,7 +599,7 @@ public abstract class GSYVideoControlView extends GSYVideoView implements View.O ...@@ -599,7 +599,7 @@ public abstract class GSYVideoControlView extends GSYVideoView implements View.O
if (mCurrentState != CURRENT_STATE_NORMAL && mCurrentState != CURRENT_STATE_PREPAREING) { if (mCurrentState != CURRENT_STATE_NORMAL && mCurrentState != CURRENT_STATE_PREPAREING) {
if (percent != 0) { if (percent != 0) {
setTextAndProgress(percent); setTextAndProgress(percent);
mBuffterPoint = percent; mBufferPoint = percent;
Debuger.printfLog("Net speed: " + getNetSpeedText() + " percent " + percent); Debuger.printfLog("Net speed: " + getNetSpeedText() + " percent " + percent);
} }
if (mProgressBar == null) { if (mProgressBar == null) {
...@@ -807,7 +807,7 @@ public abstract class GSYVideoControlView extends GSYVideoView implements View.O ...@@ -807,7 +807,7 @@ public abstract class GSYVideoControlView extends GSYVideoView implements View.O
startButtonLogic(); startButtonLogic();
} else if (mCurrentState == CURRENT_STATE_PLAYING) { } else if (mCurrentState == CURRENT_STATE_PLAYING) {
try { try {
getGSYVideoManager().pause(); onVideoPause();
} catch (Exception e) { } catch (Exception e) {
e.printStackTrace(); e.printStackTrace();
} }
......
...@@ -68,7 +68,7 @@ public abstract class GSYVideoView extends GSYTextureRenderView implements GSYMe ...@@ -68,7 +68,7 @@ public abstract class GSYVideoView extends GSYTextureRenderView implements GSYMe
protected int mScreenHeight; protected int mScreenHeight;
//缓存进度 //缓存进度
protected int mBuffterPoint; protected int mBufferPoint;
//备份缓存前的播放状态 //备份缓存前的播放状态
protected int mBackUpPlayingBufferState = -1; protected int mBackUpPlayingBufferState = -1;
...@@ -945,7 +945,7 @@ public abstract class GSYVideoView extends GSYTextureRenderView implements GSYMe ...@@ -945,7 +945,7 @@ public abstract class GSYVideoView extends GSYTextureRenderView implements GSYMe
* 缓冲进度/缓存进度 * 缓冲进度/缓存进度
*/ */
public int getBuffterPoint() { public int getBuffterPoint() {
return mBuffterPoint; return mBufferPoint;
} }
/** /**
......
...@@ -31,7 +31,7 @@ android { ...@@ -31,7 +31,7 @@ android {
dependencies { dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar']) implementation fileTree(dir: 'libs', include: ['*.jar'])
//api project(':gsyVideoPlayer-java') api project(':gsyVideoPlayer-java')
//api project(':gsyVideoPlayer-armv5') //api project(':gsyVideoPlayer-armv5')
//api project(':gsyVideoPlayer-armv7a') //api project(':gsyVideoPlayer-armv7a')
//api project(':gsyVideoPlayer-armv64') //api project(':gsyVideoPlayer-armv64')
...@@ -43,7 +43,7 @@ dependencies { ...@@ -43,7 +43,7 @@ dependencies {
//api "com.shuyu:GSYVideoPlayer:$gsyVideoVersion" //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-armv5:$gsyVideoVersion"
api "com.shuyu:gsyVideoPlayer-armv7a:$gsyVideoVersion" api "com.shuyu:gsyVideoPlayer-armv7a:$gsyVideoVersion"
api "com.shuyu:gsyVideoPlayer-arm64:$gsyVideoVersion" api "com.shuyu:gsyVideoPlayer-arm64:$gsyVideoVersion"
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册