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

change click pause

上级 5ca84e5c
......@@ -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();
}
......
......@@ -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;
}
/**
......
......@@ -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"
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册