fix the top view of browse

This commit is contained in:
vapormusic 2021-12-25 09:12:45 +07:00
parent 2fca495a5d
commit b49c079a21
4 changed files with 21 additions and 17 deletions

View file

@ -10,7 +10,7 @@
Vue.component('animatedartwork-view', {
template: '#animatedartwork-view',
props: ['video', 'hls'],
mounted() {
async mounted() {
if (this.video) {
this.$nextTick(function () {
@ -24,7 +24,6 @@
capLevelToPlayerSize: true
};
if (this.hls) {
console.log('detached');
this.hls.detachMedia();
} else {
@ -53,7 +52,6 @@
if(this.hls) {
await this.hls.destroy();
this.hls = null
console.log('killed')
}
}
});