Skip to content

Commit

Permalink
Undid previous change
Browse files Browse the repository at this point in the history
  • Loading branch information
jjuback committed Apr 4, 2024
1 parent 72d554f commit 93cc828
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
{
"name": "epistrophy",
"version": "0.3.1",
"version": "0.3.3",
"private": true,
"dependencies": {
"@mebtte/react-media-session": "^1.1.2",
"@testing-library/jest-dom": "^5.17.0",
"@testing-library/react": "^13.4.0",
"@testing-library/user-event": "^13.5.0",
Expand Down
10 changes: 10 additions & 0 deletions src/Album.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,16 @@ export const Album = (props) => {
props.goBack();
}
}}
onPlay={() => {
navigator.mediaSession.metadata = new MediaMetadata({
title: props.Tracks[trackNo].Title,
artist: props.Artist,
album: props.Title,
artwork: [
{ src: makeUrl(props.Cover), sizes: '96x96' }
]
});
}}
/>
<ListGroup numbered>
{props && props.Tracks.map((data, key) => {
Expand Down

0 comments on commit 93cc828

Please sign in to comment.