Is there a way to keep the 'audioprocess' event running when page is not visible? #2987
Unanswered
RiccardoNL
asked this question in
Q&A
Replies: 2 comments 5 replies
-
You should try the timeupdate event instead, it’s emitted directly from the media element so it will work in the background too. |
Beta Was this translation helpful? Give feedback.
1 reply
-
@katspaugh I see the timeupdate event updates only irregularly. This results in only being able to read the currentTime in seconds. Is there a way to make it update more regularly so I also can use milliseconds? |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi all,
I am using WaveSurfer for an internal radio project. I am using the 'audioprocess' event to tell if it is time to play the next item in the playlist (I'm using cues I programmed myself). However, when the page is not visible, the audioprocess event seems to not be transmitting any data. The page must be visible at all time, it seems. I am using MediaElement as a backend.
Is there a way to keep the 'audioprocess' event running when page is not visible? Am I missing something?
Kind regards,
Riccardo
Beta Was this translation helpful? Give feedback.
All reactions