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.
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.
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?
@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
This should now be fixed with https://github.com/goldfire/howler.js/commit/d22ddcf76f58861ce23ca1f6fc21d9895c253902.
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.
Most helpful comment
Has this issue come back again? I'm noticing calls to
seekalways causing the playhead to reset to 0 in v2.1.2 withhtml5set totrue.