mirror of
https://github.com/navidrome/navidrome.git
synced 2025-04-18 12:57:41 +03:00
Enable autoPlay in React Player
This commit is contained in:
parent
cf692140a9
commit
3a9324c6ef
@ -28,7 +28,7 @@ const Player = () => {
|
||||
to={`/album/${audioInfo.albumId}/show`}
|
||||
className={classes.audioTitle}
|
||||
>
|
||||
{`${audioInfo.name} - ${audioInfo.singer}`}
|
||||
{audioInfo.name ? `${audioInfo.name} - ${audioInfo.singer}` : ''}
|
||||
</Link>
|
||||
)
|
||||
|
||||
@ -36,7 +36,7 @@ const Player = () => {
|
||||
theme: playerTheme,
|
||||
bounds: 'body',
|
||||
mode: 'full',
|
||||
autoPlay: false,
|
||||
autoPlay: true,
|
||||
preload: true,
|
||||
autoPlayInitLoadPlayList: true,
|
||||
loadAudioErrorPlayNext: false,
|
||||
@ -83,7 +83,6 @@ const Player = () => {
|
||||
const addQueueToOptions = (queue) => {
|
||||
return {
|
||||
...defaultOptions,
|
||||
autoPlay: false,
|
||||
clearPriorAudioLists: queue.clear,
|
||||
audioLists: queue.queue.map((item) => item),
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user