E-Kuerschner / useAudioPlayer

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

Download audio #111

Closed braco closed 1 year ago

braco commented 1 year ago

I'm not sure how to support downloading the audio file that was loaded.

Is there a way to do this?

E-Kuerschner commented 1 year ago

hey @braco, downloading the audio is outside the scope of this hook. It is only designed to give you the means to control playback within a react application. Assuming you have the URI of the audio you should be able to start downloading it with a simple fetch request on your own.

PS version 2 of this library is available for testing on alpha if you are interested in providing feedback. Thanks!