Skip to content

Commit

Permalink
fix: cancel video loading after destroying (#883)
Browse files Browse the repository at this point in the history
  • Loading branch information
Lanfei authored Jan 24, 2025
1 parent 4b4973e commit a8458b0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/artplayer/src/template.js
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,7 @@ export default class Template {
}

destroy(removeHtml) {
this.$video.src = '';
if (removeHtml) {
this.$container.innerHTML = '';
} else {
Expand Down

0 comments on commit a8458b0

Please sign in to comment.