E-Kuerschner / useAudioPlayer

React hooks for controlling audio on the web
MIT License
332 stars 37 forks source link

Loop audio #91

Closed geniux-dev closed 1 year ago

geniux-dev commented 2 years ago

When I pass loop prop it works but the thing is I need to update the loop prop while the audio is playing.

When I do that I doest update unless I re-render

E-Kuerschner commented 1 year ago

thanks for the bug! i've added it to the backlog. I'm hoping to spend a weekend soon to apply some fixes.

E-Kuerschner commented 1 year ago

Working on this for v2

liho00 commented 1 year ago

any idea on how to achieve loop attribute in v1?

E-Kuerschner commented 1 year ago

@liho00 unfortunately v1 doesn't support this at this time. I am about to release an alpha for v2. Would you be willing to test it out for your use case when its ready?

liho00 commented 1 year ago

@liho00 unfortunately v1 doesn't support this at this time. I am about to release an alpha for v2. Would you be willing to test it out for your use case when its ready?

sure, looking forward

E-Kuerschner commented 1 year ago

@liho00 hi! The alpha version for v2 has been published and is ready to test! https://github.com/E-Kuerschner/useAudioPlayer/discussions/108

geniux-dev commented 1 year ago

How can we upgrade to v2?

E-Kuerschner commented 1 year ago

How can we upgrade to v2?

@geniux-dev check out the post here: https://github.com/E-Kuerschner/useAudioPlayer/discussions/108

E-Kuerschner commented 1 year ago

closing since i am planning to merge v2 soon