Skip to content

Commit

Permalink
Update audio.js
Browse files Browse the repository at this point in the history
  • Loading branch information
beaufortfrancois authored Dec 16, 2024
1 parent d43ab54 commit 22e395c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion media-session/audio.js
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,8 @@ video.srcObject = canvas.captureStream();
video.muted = true;

async function showPictureInPictureWindow() {
const response = await fetch([...navigator.mediaSession.metadata.artwork].pop().src);
const artworkSrc = [...navigator.mediaSession.metadata.artwork].pop().src;
const response = await fetch(artworkSrc);
const blob = await response.blob();
const image = await createImageBitmap(blob);

Expand Down

0 comments on commit 22e395c

Please sign in to comment.