Skip to content

Commit

Permalink
Merge pull request #5 from Nonhuman-Nonsense/albin
Browse files Browse the repository at this point in the history
Remove comments
  • Loading branch information
albin-karlsson authored Apr 20, 2024
2 parents c80afc5 + bdd5627 commit c5c9dca
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions client/src/components/AudioOutput.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,12 @@ function AudioOutput({ currentAudioMessage }) {
);
const blob = new Blob([currentAudioMessage.audio], { type: "audio/mp3" });
const url = URL.createObjectURL(blob);
console.log("Blob URL:", url); // Check the generated URL
audioRef.current.src = url;
audioRef.current
.play()
.catch((err) => console.error("Error playing audio:", err));

return () => {
console.log("Revoking URL:", url);
URL.revokeObjectURL(url);
};
}
Expand All @@ -30,7 +28,6 @@ function AudioOutput({ currentAudioMessage }) {
ref={audioRef}
controls
autoPlay
onLoadedData={() => console.log("Audio loaded")}
/>
);
}
Expand Down

0 comments on commit c5c9dca

Please sign in to comment.