Skip to content

Commit

Permalink
Don't autoplay when reloading play queue from Redux store
Browse files Browse the repository at this point in the history
  • Loading branch information
deluan committed Aug 1, 2021
1 parent 1710730 commit bcafe88
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ui/src/audioplayer/Player.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ const Player = () => {
bounds: 'body',
mode: 'full',
loadAudioErrorPlayNext: false,
autoPlayInitLoadPlayList: true,
clearPriorAudioLists: false,
showDestroy: true,
showDownload: false,
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit bcafe88

Please sign in to comment.