From 5bce553ba731879ca902b70b2c2cf69ac5aa4dc7 Mon Sep 17 00:00:00 2001 From: vapormusic Date: Wed, 8 Dec 2021 16:25:35 +0700 Subject: [PATCH 1/3] better animated artwork control --- resources/cider-ui-tests/index.js | 24 -------------- .../views/components/animatedartwork-view.ejs | 32 +++++++++++++++++-- 2 files changed, 29 insertions(+), 27 deletions(-) diff --git a/resources/cider-ui-tests/index.js b/resources/cider-ui-tests/index.js index fe84a702..ca49c82a 100644 --- a/resources/cider-ui-tests/index.js +++ b/resources/cider-ui-tests/index.js @@ -289,30 +289,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 ""; - } - }, getArtistPalette(artist) { if (artist["attributes"]["artwork"]) { return { diff --git a/resources/cider-ui-tests/views/components/animatedartwork-view.ejs b/resources/cider-ui-tests/views/components/animatedartwork-view.ejs index c2900932..17c5c2f2 100644 --- a/resources/cider-ui-tests/views/components/animatedartwork-view.ejs +++ b/resources/cider-ui-tests/views/components/animatedartwork-view.ejs @@ -1,7 +1,7 @@ @@ -9,13 +9,39 @@ \ No newline at end of file From 2d74895622ad114f2637e3379b722e6887338515 Mon Sep 17 00:00:00 2001 From: vapormusic Date: Wed, 8 Dec 2021 16:31:57 +0700 Subject: [PATCH 2/3] 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 = []; From d1524fbed82e26bb36a2a652bd54a365cc14b8be Mon Sep 17 00:00:00 2001 From: vapormusic Date: Wed, 8 Dec 2021 16:40:00 +0700 Subject: [PATCH 3/3] animated artwork in square-large back (testing) --- .../cider-ui-tests/views/components/mediaitem-square-large.ejs | 1 + 1 file changed, 1 insertion(+) diff --git a/resources/cider-ui-tests/views/components/mediaitem-square-large.ejs b/resources/cider-ui-tests/views/components/mediaitem-square-large.ejs index ecce0096..716f241a 100644 --- a/resources/cider-ui-tests/views/components/mediaitem-square-large.ejs +++ b/resources/cider-ui-tests/views/components/mediaitem-square-large.ejs @@ -6,6 +6,7 @@