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() {
|
async function playFullFile() {
|
||||||
videoLoading.value = true
|
videoLoading.value = true
|
||||||
videoError.value = ''
|
videoError.value = ''
|
||||||
marks.value = marks.value.filter(m => m.source !== 'face')
|
marks.value = []
|
||||||
|
playMode.value = 'continuous'
|
||||||
|
currentTraceIdx.value = 0
|
||||||
|
currentSegmentIdx.value = 0
|
||||||
try {
|
try {
|
||||||
const data = await apiCall('get_video_stream', {
|
const data = await apiCall('get_video_stream', {
|
||||||
uuid: props.fileUuid,
|
uuid: props.fileUuid,
|
||||||
@@ -1393,6 +1396,7 @@ async function playFullFile() {
|
|||||||
videoSrc.value = URL.createObjectURL(blob)
|
videoSrc.value = URL.createObjectURL(blob)
|
||||||
}
|
}
|
||||||
frameOffset.value = 0
|
frameOffset.value = 0
|
||||||
|
seekFrame.value = 0
|
||||||
await nextTick()
|
await nextTick()
|
||||||
videoEl.value?.load()
|
videoEl.value?.load()
|
||||||
} catch (e: any) {
|
} catch (e: any) {
|
||||||
|
|||||||
Reference in New Issue
Block a user