Skip to content

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

Open
lavigarg-simform wants to merge 1 commit into
mainfrom
fix/I054_waveform_from_url
Open

feat: ✨ Support waveform extraction from remote URLs on iOS and macOS#502
lavigarg-simform wants to merge 1 commit into
mainfrom
fix/I054_waveform_from_url

Conversation

@lavigarg-simform

@lavigarg-simform lavigarg-simform commented Jun 26, 2026

Copy link
Copy Markdown

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

  • The title of my PR starts with a Conventional Commit prefix (fix:, feat:, docs: etc).
  • I have followed the Contributor Guide when preparing my PR.
  • I have updated/added tests for ALL new/updated/fixed functionality.
  • 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.
  • No, this PR is not a breaking change.

Related Issues

Closes #54

iOS/macOS decode waveforms via AVAudioFile, which only reads local files, so remote http(s) URLs failed extraction. The file is now downloaded to a temp file before decoding and cleaned up afterwards.
Android's MediaExtractor handles network URIs directly, so its path
is unchanged.
@lavigarg-simform lavigarg-simform force-pushed the fix/I054_waveform_from_url branch from ed07d1a to 085d01d Compare June 26, 2026 12:44
@lavigarg-simform lavigarg-simform marked this pull request as ready for review June 26, 2026 12:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Display waves and play content from web url like: https://example.com/example_audio.mp4

1 participant