This commit is contained in:
vapormusic 2021-12-11 23:15:15 +07:00
parent 3d17365482
commit 34bd687209
2 changed files with 4 additions and 3 deletions

View file

@ -48,9 +48,10 @@
})
}
},
beforeDestroy() {
async beforeDestroy() {
if(this.hls) {
this.hls.destroy();
await this.hls.destroy();
this.hls = null
console.log('killed')
}
}

View file

@ -10,7 +10,7 @@
v-observe-visibility="{callback: visibilityChanged}">
<img :src="app.getMediaItemArtwork(url, size)" v-if="isVisible"
class="mediaitem-artwork--img">
<div v-show="video && isVisible" class="animatedartwork-view-box">
<div v-if="video && isVisible" class="animatedartwork-view-box">
<animatedartwork-view :video="video"></animatedartwork-view>
</div>
</div>