From 38260a4c61335c6e4e6008c1039bc8d1a05ad0e0 Mon Sep 17 00:00:00 2001 From: Momentry Studio Date: Wed, 21 Oct 2026 01:47:20 +0800 Subject: [PATCH] fix: full file playback resets all state to play to end of file - Clear all marks (not just face marks) - Reset playMode to 'continuous' to disable trace/segment limits - Reset currentTraceIdx and currentSegmentIdx to 0 - Reset seekFrame to 0 - This ensures full file plays from start to end without restrictions --- src/components/VideoPlayer.vue | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/components/VideoPlayer.vue b/src/components/VideoPlayer.vue index 25a33c7..db16cb9 100644 --- a/src/components/VideoPlayer.vue +++ b/src/components/VideoPlayer.vue @@ -1376,7 +1376,10 @@ function formatTime(sec: number): string { async function playFullFile() { videoLoading.value = true videoError.value = '' - marks.value = marks.value.filter(m => m.source !== 'face') + marks.value = [] + playMode.value = 'continuous' + currentTraceIdx.value = 0 + currentSegmentIdx.value = 0 try { const data = await apiCall('get_video_stream', { uuid: props.fileUuid, @@ -1393,6 +1396,7 @@ async function playFullFile() { videoSrc.value = URL.createObjectURL(blob) } frameOffset.value = 0 + seekFrame.value = 0 await nextTick() videoEl.value?.load() } catch (e: any) {