Skip to content

Commit

Permalink
Fix ui properties not getting cleared
Browse files Browse the repository at this point in the history
  • Loading branch information
absidue committed Sep 15, 2024
1 parent 1e5c6ef commit d9a27b8
Showing 1 changed file with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2717,6 +2717,16 @@ export default defineComponent({
await player.destroy()
player = null
}

// shaka-player doesn't clear these itself, which prevents shaka.ui.Overlay from being garbage collected
// Should really be fixed in shaka-player but it's easier just to do it ourselves
if (container.value) {
container.value.ui = null
}

if (video.value) {
video.value.ui = null
}
}

expose({
Expand Down

0 comments on commit d9a27b8

Please sign in to comment.