Skip to content

Commit b682716

Browse files
committed
feat: stop player updates if controls are hidden
1 parent 0c94a1e commit b682716

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

resources/js/components/video/VideoPlayer.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -696,8 +696,8 @@ const handleFullScreenChange = (e: Event) => {
696696
};
697697
698698
const handlePlayerTimeUpdate = (event: any) => {
699-
// update time if not seeking, or paused
700-
if (isScrubbing.value || isLoading.value) return;
699+
// update time if showing controls, or paused, or not seeking
700+
if (isScrubbing.value || isLoading.value || !isShowingControls.value) return;
701701
getBufferHealth();
702702
703703
// if playing or have not started playing yet, force seek (I do not remember what this is for)

0 commit comments

Comments
 (0)