Don't autoplay when reloading play queue from Redux store
This commit is contained in:
@@ -51,6 +51,7 @@ const Player = () => {
|
|||||||
bounds: 'body',
|
bounds: 'body',
|
||||||
mode: 'full',
|
mode: 'full',
|
||||||
loadAudioErrorPlayNext: false,
|
loadAudioErrorPlayNext: false,
|
||||||
|
autoPlayInitLoadPlayList: true,
|
||||||
clearPriorAudioLists: false,
|
clearPriorAudioLists: false,
|
||||||
showDestroy: true,
|
showDestroy: true,
|
||||||
showDownload: false,
|
showDownload: false,
|
||||||
@@ -80,6 +81,7 @@ const Player = () => {
|
|||||||
...defaultOptions,
|
...defaultOptions,
|
||||||
audioLists: playerState.queue.map((item) => item),
|
audioLists: playerState.queue.map((item) => item),
|
||||||
playIndex: playerState.playIndex,
|
playIndex: playerState.playIndex,
|
||||||
|
autoPlay: playerState.clear || playerState.playIndex === 0,
|
||||||
clearPriorAudioLists: playerState.clear,
|
clearPriorAudioLists: playerState.clear,
|
||||||
extendsContent: <PlayerToolbar id={current.trackId} />,
|
extendsContent: <PlayerToolbar id={current.trackId} />,
|
||||||
defaultVolume: playerState.volume,
|
defaultVolume: playerState.volume,
|
||||||
|
|||||||
Reference in New Issue
Block a user