Skip to content

Commit

Permalink
fix: useStreamAudioPlayer.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
canisminor1990 authored Nov 18, 2023
1 parent 6ff2ad5 commit 877ab0d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/react/hooks/useStreamAudioPlayer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ export const useStreamAudioPlayer = (): StreamAudioPlayerReturn => {
}, []);

useEffect(() => {
if (!audioRef.current) return;
const onEnded = async () => {
if (!audioRef.current || !audioRef.current.currentSrc) return;
audioRef.current.pause();
Expand Down

0 comments on commit 877ab0d

Please sign in to comment.