goldfire / howler.js

Javascript audio library for the modern web.
https://howlerjs.com
MIT License
23.36k stars 2.21k forks source link

Internet Explorer 10 stop() causes waveform to restart from beginning #83

Closed RobeeeJay closed 10 years ago

RobeeeJay commented 10 years ago

I have an element that when clicked on in jQuery starts audio like this:

var howler = new Howl({ buffer: true, urls: [ "/audio/mp3/intro.mp3", "/audio/mp3/intro.ogg" ] }); howler.play();

But when clicking the element to stop it in IE10 it just restarts from the beginning a few short moments later:

howler.stop();

The only way I've found to fix it is detect IE10 and use this instead:

howler.pos(99999);

goldfire commented 10 years ago

To be clear, you are saying it stops playback and then begins playing again when just calling the stop method?

RobeeeJay commented 10 years ago

Yes, that's it! Let me know if you can't reproduce it quickly, and I'll try and write a test case.

goldfire commented 10 years ago

Very sorry about the delay getting back to you on this. Does it happen on the http://howlerjs.com examples? I haven't been able to reproduce this so far.