Skip to content

🎧 Your Personal Streaming Service

Don't autoplay when reloading play queue from Redux store

Deluanbcafe88ef9df
diff --git a/ui/src/audioplayer/Player.js b/ui/src/audioplayer/Player.js
index 48a6683d1..6e7100851 100644
--- a/ui/src/audioplayer/Player.js
+++ b/ui/src/audioplayer/Player.js
@@ -51,6 +51,7 @@ const Player = () => {
bounds: 'body',
mode: 'full',
loadAudioErrorPlayNext: false,
+ autoPlayInitLoadPlayList: true,
clearPriorAudioLists: false,
showDestroy: true,
showDownload: false,
@@ -80,6 +81,7 @@ const Player = () => {
...defaultOptions,
audioLists: playerState.queue.map((item) => item),
playIndex: playerState.playIndex,
+ autoPlay: playerState.clear || playerState.playIndex === 0,
clearPriorAudioLists: playerState.clear,
extendsContent: <PlayerToolbar id={current.trackId} />,
defaultVolume: playerState.volume,