You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It looks as though there is a defaultCurrentTime prop on the <Player> component that allows for a number (seconds) to be passed in as the initial start time. Fair warning, it doesn't seem to play well if you're switching between audio files. For that, I had to pass in an onReady function and do something like this:
const onPlayerReady = ({seekTo}) => {
if (id !== lastLoadedId) {
seekTo(40) //initial start time here
setLastLoadedId(id)
}
}
Or even better... at a given state (volume, rate, paused/playing, currentTime, ...)
The text was updated successfully, but these errors were encountered: