We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bc73b8e commit e335e6aCopy full SHA for e335e6a
packages/core/src/components/MediaPlayer/AudioPlayer/HeadlessAudioPlayer.tsx
@@ -39,8 +39,11 @@ const HeadlessAudioPlayer = React.forwardRef<
39
const [isPlaying, setIsPlaying] = React.useState(false);
40
41
React.useEffect(() => {
42
- if (currentSound) {
43
- currentSound?.setIsLoopingAsync(isLooping);
+ if (
+ currentSound &&
44
+ typeof currentSound?.setIsLoopingAsync === "function"
45
+ ) {
46
+ currentSound.setIsLoopingAsync(isLooping);
47
}
48
}, [currentSound, isLooping]);
49
0 commit comments