Skip to content

Commit

Permalink
NoBuffer - Consider 5s instead of 1s
Browse files Browse the repository at this point in the history
  • Loading branch information
Inrixia committed Jun 24, 2024
1 parent 5b19811 commit e08836e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/NoBuffer/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const trace = Tracer("[NoBuffer]");
let unblocking = false;
export const onUnload = intercept("playbackControls/SET_PLAYBACK_STATE", ([state]) => {
const { playbackContext, latestCurrentTime } = getPlaybackControl();
if (latestCurrentTime !== 0 && state === "STALLED" && unblocking === false) {
if ((latestCurrentTime ?? 0) > 5 && state === "STALLED" && unblocking === false) {
unblocking = true;
(async () => {
if (playbackContext === undefined) return;
Expand Down

0 comments on commit e08836e

Please sign in to comment.