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
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user