Wavesurfer Events affecting scrollIntoView #2729
Replies: 2 comments 1 reply
-
Audioprocess is a very high-frequency event, esp. if you’re using the default WebAudio playback. So it will fire that event far more many times than you probably expect. Perhaps try using |
Beta Was this translation helpful? Give feedback.
-
I tried the first solution with the backend and that did not work. As for the second solution, I am struggling to navigate and find the Web Audio audioprocess you are talking about. Can you provide some more assistance for this please? |
Beta Was this translation helpful? Give feedback.
-
Hi! I have been using wavesurfer in correspondence with another API. I have an event handler for when the audio is playing (i.e.
audioprocess
). When the audio the playing, I wish for a certain item in my page from another API to scroll into view. However, the item only gets centered into the screen when the audio is paused. I am not sure why this is happening. I thought it was maybe that the wavesurfer events are synchronous and only activate the scrollIntoView once the event is done. Here is the code I have:Beta Was this translation helpful? Give feedback.
All reactions