Skip to content

Commit

Permalink
MediaSession.autoPlay
Browse files Browse the repository at this point in the history
  • Loading branch information
jjuback committed Apr 2, 2024
1 parent 5118d42 commit a9601b7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Album.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ export const Album = (props) => {
artwork={[
{ src: makeUrl(props.Cover), sizes: '96x96' }
]}
autoPlay={trackNo > 0}
onEnded={() => {
if (trackNo + 1 < props.Tracks.length) {
setTrackNo(trackNo + 1);
Expand Down

0 comments on commit a9601b7

Please sign in to comment.