Skip to content

Commit

Permalink
修改片尾显示和跳过逻辑 (takagen99#143)
Browse files Browse the repository at this point in the history
  • Loading branch information
670637080 committed Jun 12, 2024
1 parent 51a9a70 commit ab3aca4
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -900,7 +900,7 @@ public void onClick(View view) {
int current = (int) mControlWrapper.getCurrentPosition();
int duration = (int) mControlWrapper.getDuration();
if (current < duration / 2) return;
mPlayerConfig.put("et", (duration - current) / 1000);
mPlayerConfig.put("et", current / 1000);

updatePlayerCfgView();
listener.updatePlayerCfg();
Expand Down Expand Up @@ -1118,7 +1118,7 @@ protected void setProgress(int duration, int position) {
} catch (JSONException e) {
e.printStackTrace();
}
if (et > 0 && position + (et * 1000) >= duration) {
if (et > 0 && (position / 1000) >= et) {
skipEnd = false;
listener.playNext(true);
}
Expand Down

0 comments on commit ab3aca4

Please sign in to comment.