From 3a9324c6efbedac300451cc3708f377345c00a12 Mon Sep 17 00:00:00 2001 From: Deluan Date: Fri, 19 Jun 2020 16:32:54 -0400 Subject: [PATCH] Enable autoPlay in React Player --- ui/src/audioplayer/Player.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/ui/src/audioplayer/Player.js b/ui/src/audioplayer/Player.js index b648edd85..2f365806b 100644 --- a/ui/src/audioplayer/Player.js +++ b/ui/src/audioplayer/Player.js @@ -28,7 +28,7 @@ const Player = () => { to={`/album/${audioInfo.albumId}/show`} className={classes.audioTitle} > - {`${audioInfo.name} - ${audioInfo.singer}`} + {audioInfo.name ? `${audioInfo.name} - ${audioInfo.singer}` : ''} ) @@ -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), }