-
Notifications
You must be signed in to change notification settings - Fork 35
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
Adding player
back — Howler Instance Reference
#124
Comments
player
back — Howler Instance Reference
@phemartin im open to adding an escape hatch method: |
As for the bugs is there something specific that you want to address? If we can create a set of reproducible steps maybe we can do something about it! |
@E-Kuerschner The bug I'm running into is that sometimes the audio simply stops playing. Refreshing the page doesn't help replaying the audio. The audio only plays again if the user opens a new tab (which is a pretty bad experience). Reproducing it is hard because the bug occurs sporadically, which makes it hard to predict when/what is causing it. This usually occurs when:
I usually get two errors in my console:
I experienced a similar issue with v1, and accessing Howler directly solved it for me. Which is why I'm asking for a direct interface with Howler. But ideally, it wouldn't be necessary if the audio didn't crash. Hope this is helpful! ✌️ |
thanks @phemartin! Yeah I agree, going through the Howl object directly kinda defeats the purpose of having a React-hooks based integration all together, but it might be a necessary evil for some cases such as this. The issues you describe are interesting. Clearly the library is introducing some sort of overhead that doesn't exist with using Howler directly, but what/where this is will be difficult to tray down. Unfortunately I won't have as much bandwidth for changes as I did earlier this year. If the |
In v1, a
player
parameter directly references the Howler instance.The current API is great, but I found it a bit buggy, and some things aren't supported yet. I can use it to create custom behaviors by directly accessing the
Howler
instance.Regarding the bugs, I found that sometimes when heavily manipulating the audio with
rate
andseek
, the player crashes and stops working (requiring a refresh).This also occurred in v1, but accessing rate/seek directly helped.
@E-Kuerschner Are there any plans to incorporate
player
back into the API?Thanks!
The text was updated successfully, but these errors were encountered: