Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Howl.Seek() does not work as expected #20

Open
LordBenjamin opened this issue May 14, 2022 · 3 comments
Open

Howl.Seek() does not work as expected #20

LordBenjamin opened this issue May 14, 2022 · 3 comments
Assignees

Comments

@LordBenjamin
Copy link

LordBenjamin commented May 14, 2022

Calling Howl.Seek(TimeSpan) does not seek to the expected position - instead, it essentially restarts the audio clip from the beginning.

I believe that the code below should use position.TotalMilliseconds rather than position.TotalSeconds?

public ValueTask Seek(int soundId, TimeSpan position)
{
    return _runtime.InvokeVoidAsync("howl.seek", soundId, position.TotalSeconds);
}
@LordBenjamin
Copy link
Author

I take it back - this appears to be something inside howler.js itself!

@StefH
Copy link
Owner

StefH commented Oct 17, 2022

@LordBenjamin
Is this issue also addressed in howler.js ?

@StefH StefH self-assigned this Oct 17, 2022
@jihadkhawaja
Copy link

jihadkhawaja commented Oct 28, 2022

Having the same issue on iOS (HTML5 true) only causing the audio to restart.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants