Skip to content

Commit

Permalink
Temporarily removed onPlay
Browse files Browse the repository at this point in the history
  • Loading branch information
jjuback committed Apr 4, 2024
1 parent 36ab673 commit 72d554f
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions src/Album.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,16 +22,6 @@ 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 All @@ -46,7 +36,7 @@ export const Album = (props) => {
<Tab eventKey="cover" title="Cover">
<Image className="cover-large-thumbnail" src={makeUrl(props.Cover)} />
</Tab>
</Tabs>
</Tabs>
</>
);
};

0 comments on commit 72d554f

Please sign in to comment.