-
Notifications
You must be signed in to change notification settings - Fork 108
Open
Description
I'm having an issue when i click to pause the player, then click again, it starts over from 0:00 - is this the intended behavior? Is there a way to resume from current position?
const Player = withCustomAudio(props => {
const { soundCloudAudio, playing, track, currentTime } = props;
const play = () => {
if (playing) {
soundCloudAudio.pause();
} else {
soundCloudAudio.play();
}
}
return (
<div className="flex flex-col rounded-lg border border-black overflow-hidden bg-white shadow">
<img className="w-96 h-96 border-b border-black cursor-pointer" src={track.cover} onClick={() => play()} alt={track.title} />
Metadata
Metadata
Assignees
Labels
No labels