Closed pozymasika closed 3 years ago
@pozymasika thanks for the request! I think this problem will keep arising where developers request an unimplemented method from the underlying library. If I keep taking these up i will end up just copying the howler API one-to-one. I'm thinking this is evidence enough that we need an escape hatch to access the underlying howler object if needed. I'll add this to the next batch of changes I release.
@E-Kuerschner thanks for looking at this and adding the escape hatch! 👏
@E-Kuerschner +1! - Looking forward for rate
to be exposed globally! (:
Is your feature request related to a problem? Please describe.
I was trying to set the playback rate but there's no method to do this via the
useAudioPosition
/useAudioPlayer
hooks. Howler.js exposes this method via.rate()
methodDescribe the solution you'd like
expose the howler player instance in the
useAudioPlayer
hook so it's easy to access all other methods i.ealternatively, you can just add
rate
function:Describe alternatives you've considered I had to get the howler instance via the global
Howler._howls
object:Additional context Add any other context or screenshots about the feature request here.