Skip to content

Commit

Permalink
fix: loading change fail while adding new clip
Browse files Browse the repository at this point in the history
  • Loading branch information
caohongz committed Jan 14, 2025
1 parent 6091c0a commit 00f6dcd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/views/clipPage/clipPlayer/Player.vue
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ const handlePlay = (isPlay: boolean) => {
isPlaying.value = false
}
}

const handleStopPlay = () => {
cvs.pause()
isPlaying.value = false
Expand Down Expand Up @@ -672,7 +672,7 @@ watch(() => initCount.value, (newCount) => {
if (initTotal.value !== 0) {
loading.value = true
}
if (newCount === initTotal.value) {
if (newCount >= initTotal.value) {
loading.value = false
cvs?.previewFrame(props.currentTime * 1e6)
for (const clip of props.tracks.flatMap(track => track.clips)) {
Expand Down

0 comments on commit 00f6dcd

Please sign in to comment.