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
When backend is set to MediaElement or not specified, the "region-out" event fires immediately when calling region.play(). It works fine in Safari, or when backend is set to WebAudio.
Environment
Browser: Chrome on Mac
Minimal code snippet
const onPlaySegment = useCallback((idx: number) => {
const region = regionsPlugin.current.regions[idx];
region.play();
regionsPlugin.current.once('region-out', () => {
// this fires before the region actually starts playing
wavesurfer.current.pause();
});
}, [regionsPlugin, wavesurfer]);
I'd also really love a playOnce option in regions to just play the region from start to end so I don't need to manually stop the audio.
The text was updated successfully, but these errors were encountered:
Bug description
When backend is set to
MediaElement
or not specified, the "region-out" event fires immediately when callingregion.play()
. It works fine in Safari, or when backend is set toWebAudio
.Environment
Minimal code snippet
I'd also really love a playOnce option in regions to just play the region from start to end so I don't need to manually stop the audio.
The text was updated successfully, but these errors were encountered: