animated artwork in fullscreen
This commit is contained in:
parent
d4059d00d5
commit
d88209ab95
2 changed files with 23 additions and 1 deletions
|
@ -14,6 +14,8 @@
|
||||||
<div class="artwork" @click="app.fullscreen(false)">
|
<div class="artwork" @click="app.fullscreen(false)">
|
||||||
<mediaitem-artwork
|
<mediaitem-artwork
|
||||||
:size="600"
|
:size="600"
|
||||||
|
:video="video"
|
||||||
|
:videoPriority="true"
|
||||||
:url="(image ?? '').replace('{w}','600').replace('{h}','600')"
|
:url="(image ?? '').replace('{w}','600').replace('{h}','600')"
|
||||||
></mediaitem-artwork>
|
></mediaitem-artwork>
|
||||||
</div>
|
</div>
|
||||||
|
@ -149,6 +151,24 @@
|
||||||
return {
|
return {
|
||||||
app: this.$root,
|
app: this.$root,
|
||||||
tabMode: "lyrics",
|
tabMode: "lyrics",
|
||||||
|
video: null
|
||||||
|
}
|
||||||
|
},
|
||||||
|
async mounted() {
|
||||||
|
if (app.mk.nowPlayingItem._container.type == "albums") {
|
||||||
|
try {
|
||||||
|
const result = (await app.mk.api.v3.music(`/v1/catalog/${app.mk.storefrontId}/${app.mk.nowPlayingItem._container.type}/${app.mk.nowPlayingItem._container.id}`, {
|
||||||
|
"fields": "editorialArtwork,editorialVideo",
|
||||||
|
})).data.data[0].attributes?.editorialVideo?.motionDetailSquare?.video
|
||||||
|
if (result) {
|
||||||
|
this.video = result
|
||||||
|
} else {
|
||||||
|
this.video = null
|
||||||
|
}
|
||||||
|
} catch (e) {
|
||||||
|
this.video = null
|
||||||
|
e = null
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
beforeMount() {
|
beforeMount() {
|
||||||
|
|
|
@ -19,6 +19,8 @@
|
||||||
<apple-music-playback-controls theme="dark" />
|
<apple-music-playback-controls theme="dark" />
|
||||||
<apple-music-progress theme="dark"></apple-music-progress>
|
<apple-music-progress theme="dark"></apple-music-progress>
|
||||||
<apple-music-volume theme="dark"></apple-music-volume>
|
<apple-music-volume theme="dark"></apple-music-volume>
|
||||||
|
<amp-user-menu/>
|
||||||
|
<amp-tv-overlay/>
|
||||||
</div>
|
</div>
|
||||||
</script>
|
</script>
|
||||||
<script>
|
<script>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue