goldfire / howler.js

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

Duration is NaN on Firefox #36

Closed lukebitts closed 11 years ago

lukebitts commented 11 years ago

I tried the following code:

var h = new Howl({
    urls:["sounds/sound.ogg","sounds/sound.mp3"],
    loop:true
});

When I log h with Firefox, the _duration variable is NaN and playing the sound, besides sounding totally wrong, slows the browser to a crawl until I have to force quit it. This works on Safari and Chrome.

I tried using setting a duration with the object sent in the new Howl, but the resulting duration is also NaN. Is this a known issue? Could I be doing something wrong?

I'm testing on Firefox 20.0 for Mac.

Thanks.

goldfire commented 11 years ago

I am unable to reproduce this. Are you seeing the same issue on the examples at http://howlerjs.com?

lukebitts commented 11 years ago

I wasn't experiencing on your website, but I realized I was using version 1.0.13, after updating to 1.1.1 the problem was solved.