A music player that connects to your cloud/distributed storage.
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Fixes #302

+17 -3
+17 -3
src/Javascript/index.js
··· 165 165 166 166 167 167 function activeQueueItemChanged(item) { 168 - if (orchestrion.activeQueueItem && item && item.trackId === orchestrion.activeQueueItem.trackId) { 168 + if ( 169 + orchestrion.activeQueueItem && 170 + orchestrion.audio && 171 + item && 172 + item.trackId === orchestrion.activeQueueItem.trackId 173 + ) { 169 174 orchestrion.audio.currentTime = 0 170 175 return 171 176 } ··· 408 413 function gotCachedCover({ key, url }) { 409 414 const item = orchestrion.activeQueueItem 410 415 411 - if (item && key === orchestrion.coverPrep.key) { 416 + if (item && orchestrion.coverPrep && key === orchestrion.coverPrep.key && url) { 417 + let artwork = [{ src: url }] 418 + 419 + if (typeof url !== "string") { 420 + artwork = [{ 421 + src: URL.createObjectURL(url), 422 + type: url.type 423 + }] 424 + } 425 + 412 426 navigator.mediaSession.metadata = new MediaMetadata({ 413 427 title: item.trackTags.title, 414 428 artist: item.trackTags.artist, 415 429 album: item.trackTags.album, 416 - artwork: [{ src: url }] 430 + artwork: artwork 417 431 }) 418 432 } 419 433 }