fix for music videos

This commit is contained in:
booploops 2021-12-10 19:23:35 -08:00
parent 83e77146f0
commit 6585bcde1b
2 changed files with 5 additions and 3 deletions

View file

@ -39,8 +39,10 @@
}
},
beforeDestroy() {
this.hls.destroy();
console.log('killed')
if(this.hls) {
this.hls.destroy();
console.log('killed')
}
}
});
</script>

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-if="video && isVisible" class="animatedartwork-view-box">
<div v-show="video && isVisible" class="animatedartwork-view-box">
<animatedartwork-view :video="video"></animatedartwork-view>
</div>
</div>