This commit is contained in:
an-lee
2024-07-17 10:37:41 +08:00
parent ff09398952
commit ff4fcad32f

View File

@@ -107,7 +107,12 @@ export const RecordingPlayer = (props: {
useEffect(() => {
if (!wavesurfer) return;
wavesurfer.playPause();
if (isPlaying) {
wavesurfer.play();
} else {
wavesurfer.pause();
}
}, [isPlaying, wavesurfer]);
return (