Skip to content

Commit

Permalink
fix(web): cancel video loading after leaving the video page (#221)
Browse files Browse the repository at this point in the history
  • Loading branch information
Lanfei authored Dec 30, 2024
1 parent 35ebb0e commit ef56a90
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/pages/home/previews/video.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -310,6 +310,7 @@ const Preview = () => {
})
})
onCleanup(() => {
if (player && player.video) player.video.src = ""
player?.destroy()
})
const [autoNext, setAutoNext] = createSignal()
Expand Down

0 comments on commit ef56a90

Please sign in to comment.