Skip to content

Commit

Permalink
fix startAfterPrepared
Browse files Browse the repository at this point in the history
  • Loading branch information
CarGuoSmall committed Dec 21, 2018
1 parent 72b00ea commit c93f9e0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -852,6 +852,11 @@ protected void clickStartIcon() {
mVideoAllCallBack.onClickResume(mOriginUrl, mTitle, this);
}
}

if (!mHadPlay && !mStartAfterPrepared) {
startAfterPrepared();
}

try {
getGSYVideoManager().start();
} catch (Exception e) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -582,6 +582,7 @@ public void onPrepared() {

if (!mStartAfterPrepared) {
setStateAndUi(CURRENT_STATE_PAUSE);
onVideoPause();//todo 加上这个
return;
}

Expand Down

0 comments on commit c93f9e0

Please sign in to comment.