howler.js icon indicating copy to clipboard operation
howler.js copied to clipboard

Delay a Howl?

Open beeeemster opened this issue 5 years ago • 3 comments

Is it possible to delay a Howl by a specified amount of time e.g. 2/10 of a second?

Appreciate your time!

beeeemster avatar Oct 22 '20 04:10 beeeemster

I'm not sure I follow? You can call play whenever you would like, if that is what you mean?

goldfire avatar Oct 24 '20 21:10 goldfire

What I do in my Angular app:

setTimeout(()=>{                         
          howl.play()}, (200));

Totobriac avatar Apr 25 '21 14:04 Totobriac

For whatever reason Totobriac's solution seems to create another instance of Howler, ignoring for example the global volume in React. I can't seem to figure out why, but this is probably something with React and nothing to do with Howler.

finlaydegrauwe avatar Jun 21 '22 22:06 finlaydegrauwe