File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed
gsyVideoPlayer-java/src/main/java/com/shuyu/gsyvideoplayer/video/base Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -387,7 +387,7 @@ public void run() {
387387 if (GSYVideoView .this .mReleaseWhenLossAudio ) {
388388 GSYVideoView .this .releaseVideos ();
389389 } else {
390- if (getGSYVideoManager ().listener () != null )
390+ if (getGSYVideoManager ().listener () != null )
391391 getGSYVideoManager ().listener ().onVideoPause ();
392392 }
393393
@@ -762,7 +762,8 @@ public void clearCurrentCache() {
762762 */
763763 public long getCurrentPositionWhenPlaying () {
764764 long position = 0 ;
765- if (mCurrentState == CURRENT_STATE_PLAYING || mCurrentState == CURRENT_STATE_PAUSE ) {
765+ if (mCurrentState == CURRENT_STATE_PLAYING || mCurrentState == CURRENT_STATE_PAUSE
766+ || mCurrentState == CURRENT_STATE_PLAYING_BUFFERING_START ) {
766767 try {
767768 position = getGSYVideoManager ().getCurrentPosition ();
768769 } catch (Exception e ) {
@@ -1072,8 +1073,8 @@ public void setSpeed(float speed, boolean soundTouch) {
10721073 /**
10731074 * 播放速度
10741075 *
1075- * @param speed 速度
1076- * @param soundTouch 是否对6.0下开启变速不变调
1076+ * @param speed 速度
1077+ * @param soundTouch 是否对6.0下开启变速不变调
10771078 * @param workRightNow 是否立刻生效
10781079 */
10791080 public void setSpeed (float speed , boolean soundTouch , boolean workRightNow ) {
You can’t perform that action at this time.
0 commit comments