E-Kuerschner / useAudioPlayer

React hooks for controlling audio on the web
MIT License
315 stars 35 forks source link

usePosition doesnt work anymore #109

Closed geniux-dev closed 1 year ago

geniux-dev commented 1 year ago

After installing alpha usePosition is not found,

E-Kuerschner commented 1 year ago

Hi @geniux-dev pls see the announcement post for v2. useAudioPosition is being dropped in favor of client-specific implementations. You can use the "getPosition" method within an interval to build your own version of this

geniux-dev commented 1 year ago

thanks will test again now

E-Kuerschner commented 1 year ago

@geniux-dev here is an example: https://github.com/E-Kuerschner/useAudioPlayer/blob/v2.0/examples/src/AudioSeekBar.tsx#L26