Skip to content

Commit

Permalink
🚨 Fix: 명상 배경음악 링크 최신화
Browse files Browse the repository at this point in the history
  • Loading branch information
sscoderati committed Jan 24, 2024
1 parent ecc0f3d commit b07caaf
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/pages/meditation/components/MeditationAudioPlayer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ import { ICON_NAME_PAUSE, ICON_NAME_PLAY } from '@pages/meditation/constants';
const MeditationAudioPlayer = () => {
const [playing, setPlaying] = useState(false);
const audioRef = useRef<HTMLAudioElement>(null);
// This Audio Source is Free Licensed from below site.
// https://pixabay.com/sound-effects/search/night%20ambience/
const audioSrc =
'https://drive.google.com/file/d/13kC8CorTL7nV6Zp5m9jnClsRdxWFEXZn/view?usp=sharing';

const togglePlaying = () => {
if (playing) {
Expand All @@ -29,9 +33,7 @@ const MeditationAudioPlayer = () => {
/>
<audio
ref={audioRef}
src={
'https://drive.google.com/uc?export=view&id=13kC8CorTL7nV6Zp5m9jnClsRdxWFEXZn'
}
src={audioSrc}
loop
/>
</AudioPlayerElement>
Expand Down

1 comment on commit b07caaf

@sscoderati
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.