From 2d74895622ad114f2637e3379b722e6887338515 Mon Sep 17 00:00:00 2001 From: vapormusic Date: Wed, 8 Dec 2021 16:31:57 +0700 Subject: [PATCH] remove playAnimatedArtwork --- resources/cider-ui-tests/index.js | 24 ------------------------ 1 file changed, 24 deletions(-) diff --git a/resources/cider-ui-tests/index.js b/resources/cider-ui-tests/index.js index 98ccc52d..7c0a288f 100644 --- a/resources/cider-ui-tests/index.js +++ b/resources/cider-ui-tests/index.js @@ -294,30 +294,6 @@ const app = new Vue({ } return hash; }, - playAnimatedArtwork(url) { - if (Hls.isSupported()) { - var video = document.querySelector(`[vid="${app.hashCode(url)}"] > video`) - console.log('supported'); - var hls = new Hls(); - // bind them together - if (video) { - hls.attachMedia(video); - hls.on(Hls.Events.MEDIA_ATTACHED, function () { - console.log('video and hls.js are now bound together !'); - hls.loadSource(url); - hls.on(Hls.Events.MANIFEST_PARSED, function (event, data) { - video.play(); - return ""; - }); - }); - } else { - console.log("hso"); - return ""; - } - } else { - return ""; - } - }, routeView(item) { let self = this app.showingPlaylist = [];