Skip to content Skip to sidebar Skip to footer

Delays When Seeking With Html5 Audio.currenttime

I use the Audio element in my JavaScript to play a sound repeatedly in short intervals. IE and Chrome seem to have no delay when using currentTime, but Firefox has a very noticabl

Solution 1:

HTML5 <audio> element has not been designed for short, intervalled, audio playback. It won't work for use cases like sound effects. <audio> was designed for interactive music-like playback triggered by the user.

Use Web Audio API for sound-effect-like playback which gives you some guarantees about the playback delays.

Post a Comment for "Delays When Seeking With Html5 Audio.currenttime"