Start player in pause mode if windows is reloaded/refreshed. Fixes #457
This commit is contained in:
parent
fd32a28788
commit
cff5c1ee53
1 changed files with 2 additions and 1 deletions
|
|
@ -41,7 +41,7 @@ const Player = () => {
|
||||||
theme: playerTheme,
|
theme: playerTheme,
|
||||||
bounds: 'body',
|
bounds: 'body',
|
||||||
mode: 'full',
|
mode: 'full',
|
||||||
autoPlay: true,
|
autoPlay: false,
|
||||||
preload: true,
|
preload: true,
|
||||||
autoPlayInitLoadPlayList: true,
|
autoPlayInitLoadPlayList: true,
|
||||||
loadAudioErrorPlayNext: false,
|
loadAudioErrorPlayNext: false,
|
||||||
|
|
@ -94,6 +94,7 @@ const Player = () => {
|
||||||
return {
|
return {
|
||||||
...defaultOptions,
|
...defaultOptions,
|
||||||
clearPriorAudioLists: queue.clear,
|
clearPriorAudioLists: queue.clear,
|
||||||
|
autoPlay: queue.clear || queue.playIndex === 0,
|
||||||
playIndex: queue.playIndex,
|
playIndex: queue.playIndex,
|
||||||
audioLists: queue.queue.map((item) => item),
|
audioLists: queue.queue.map((item) => item),
|
||||||
defaultVolume: queue.volume,
|
defaultVolume: queue.volume,
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue