Turn off autoplay when reloading the play queue from the Redux store

This commit is contained in:
Deluan
2020-04-24 20:38:03 -04:00
committed by Deluan Quintão
parent 61e3fe21ff
commit 177ace1cee
3 changed files with 16 additions and 9 deletions
+3 -3
View File
@@ -17,7 +17,7 @@ const Player = () => {
theme: playerTheme,
bounds: 'body',
mode: 'full',
autoPlay: true,
autoPlay: false,
preload: true,
autoPlayInitLoadPlayList: true,
clearPriorAudioLists: false,
@@ -63,7 +63,7 @@ const Player = () => {
const addQueueToOptions = (queue) => {
return {
...defaultOptions,
autoPlay: true,
autoPlay: queue.playing,
clearPriorAudioLists: queue.clear,
audioLists: queue.queue.map((item) => item),
}
@@ -108,7 +108,7 @@ const Player = () => {
/>
)
}
return <div />
return null
}
export default Player