audio_waveforms
audio_waveforms copied to clipboard
feat: ✨ Support waveform extraction from remote URLs on iOS and macOS
Description
Adds support for extracting waveforms from remote http/https audio URLs on iOS and macOS.
Why it didn't work before:
- iOS/macOS decode waveforms with
AVAudioFile, which only reads local files. - A remote URL was handed straight to it, so extraction failed.
What changed:
- On iOS/macOS, a remote URL is now downloaded to a temp file first, then decoded.
- The temp file is deleted afterwards (best-effort cleanup).
- The original file extension is kept so the native decoder can detect the format.
- Android is untouched — its
MediaExtractoralready reads network URIs directly. - Docs updated to show loading a waveform straight from a network URL.
Checklist
- [x] The title of my PR starts with a Conventional Commit prefix (
fix:,feat:,docs:etc). - [x] I have followed the Contributor Guide when preparing my PR.
- [ ] I have updated/added tests for ALL new/updated/fixed functionality.
- [x] I have updated/added relevant documentation in
docsand added dartdoc comments with///. - [ ] I have updated/added relevant examples in
examplesordocs.
Breaking Change?
- [ ] Yes, this PR is a breaking change.
- [x] No, this PR is not a breaking change.
Related Issues
Closes #54