audio_waveforms icon indicating copy to clipboard operation
audio_waveforms copied to clipboard

feat: ✨ Support waveform extraction from remote URLs on iOS and macOS

Open lavigarg-simform opened this issue 5 months ago • 0 comments

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 MediaExtractor already 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 docs and added dartdoc comments with ///.
  • [ ] I have updated/added relevant examples in examples or docs.

Breaking Change?

  • [ ] Yes, this PR is a breaking change.
  • [x] No, this PR is not a breaking change.

Related Issues

Closes #54

lavigarg-simform avatar Jun 26 '26 12:06 lavigarg-simform