Open softmaniaperu opened 1 year ago
But if it is loaded from an URL of the same domain?
@softmaniaperu
What is the way you want to read the URL?
https://meowtec.github.io/audio-cutter/dist/?audio=https://host/path.mp3
?window.prompt()
?If CORS is not a problem, both are easy to implement. All that needs to be done is adding a componentDidMount
lifecycle in src/index.tsx
, and fetch
the audio URL to a blob, then call handleFileChang(blob)
. (We should modify File
to Blob
on some places).
If you can code, PR welcome.
I want to have a web page with a preloaded file from an URL. Thanks.