Howler.js: seek no longer works in 2.1.0

Created on 14 Dec 2018  路  11Comments  路  Source: goldfire/howler.js

Updating to 2.1.0 causes seek(position) to no longer work. It always plays from the start. If I revert to 2.0.15 it works again. I am using html5: true and format: ['mp3']. Setting the html5PoolSize to 0 did not resolve the issue. I have the same result in chrome & safari.

Most helpful comment

Has this issue come back again? I'm noticing calls to seek always causing the playhead to reset to 0 in v2.1.2 with html5 set to true.

All 11 comments

Can you provide sample code demonstrating the issue?

Sure. If I switch between 2.0.15 and 2.1.0 in the pen I get different results when I press seek.

https://codepen.io/smakinson/pen/maPRNe

I've got the same issue and found the problem.
See https://github.com/goldfire/howler.js/pull/1102

@smakinson If you change your codepen howler version to my branch it should work. Can you confirm?

https://cdn.jsdelivr.net/gh/ardeois/howler.js@610ed0c02f07680fd4e73a87cc6ebed8ab273188/dist/howler.min.js

@ardeois Looks like that fixes it!

I think you can also pass the id back in when calling play the second time:

var howl = new Howl(...);
...
var id = howl.play();
...
howl.pause();
...
howl.play(id); // will not start back at beginning.

Good point, it should work. However it looks to me like a workaround on a regression

Thank you for addressing this so quickly!

Has this issue come back again? I'm noticing calls to seek always causing the playhead to reset to 0 in v2.1.2 with html5 set to true.

I am also facing this seek issue in chrome and opera using version 2.1.2. But working without issues in firefox.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

joshbruce picture joshbruce  路  4Comments

brancusi picture brancusi  路  4Comments

bflora2 picture bflora2  路  4Comments

jacobedawson picture jacobedawson  路  3Comments

Glutch picture Glutch  路  3Comments