Skip to content

Commit

Permalink
up main files
Browse files Browse the repository at this point in the history
  • Loading branch information
fgl27 committed Aug 1, 2024
1 parent 34ebe2a commit b665d59
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 7 deletions.
2 changes: 1 addition & 1 deletion release/githubio/js/main.js

Large diffs are not rendered by default.

24 changes: 18 additions & 6 deletions release/githubio/js/main_uncompressed.js
Original file line number Diff line number Diff line change
Expand Up @@ -23352,6 +23352,8 @@
Play_StayCheckHostId = 0;
Play_HasLive = false;

Play_BufferSize = 0;

Play_data.watching_time = new Date().getTime();
Main_textContentWithEle(Play_infoWatchingTime, ', ' + STR_WATCHING + Play_timeS(0));
PlayClip_SetProgressBarJumpers();
Expand Down Expand Up @@ -24821,14 +24823,21 @@
Play_UpdateDurationDiv(value[8]);
}

var current_time_seconds = timeMs / 1000;
var current_time_seconds = timeMs / 1000,
duration = Play_DurationSeconds;

if (current_time_seconds < 0) {
//playback was paused, buffer is bigger then duration
duration = Play_DurationSeconds + Math.abs(current_time_seconds);
if (duration !== Play_DurationSeconds) {
Play_DurationSeconds = duration;
Main_textContentWithEle(Play_BottonIcons_Progress_Duration, Play_timeS(Play_DurationSeconds));
}

if (Play_BufferSize > current_time_seconds) {
//playback was paused
current_time_seconds = Play_BufferSize + 5;
current_time_seconds = 1;
}

PlayVod_ProgressBarrUpdate(current_time_seconds, Play_DurationSeconds, !PlayVod_IsJumping || PlayVod_PanelY);
PlayVod_ProgressBarrUpdate(current_time_seconds, duration, !PlayVod_IsJumping || PlayVod_PanelY);
}

function Play_getMbps(value) {
Expand Down Expand Up @@ -25093,7 +25102,10 @@
} else if (duration > 0) {
Play_UpdateDurationDiv(duration);

if (PlayVod_isOn) PlayVod_muted_segments(PlayVod_muted_segments_value, true); //duration may have changed update the positions
if (PlayVod_isOn) {
//duration may have changed update the positions
PlayVod_muted_segments(PlayVod_muted_segments_value, true);
}
}
}

Expand Down

0 comments on commit b665d59

Please sign in to comment.