just_audio
just_audio copied to clipboard
Error loading audio source: (-11850) Operation Stopped
Which API doesn't behave as documented, and how does it misbehave? Name here the specific methods or fields that are not behaving as documented, and explain clearly what is happening.
setAudioSource
throws exception Error loading audio source: (-11850) Operation Stopped
setAudioSource
tries to load a LockCachingAudioSource
, where the source URL doesn't contain the extension of the recorded audio.
The cacheFile
for LockCachingAudioSource
is built locally, setting the extension on the file path.
Minimal reproduction project Provide a link here using one of two options:
- https://github.com/alexgrusu/just_audio_demo
To Reproduce (i.e. user steps, not code) Steps to reproduce the behavior:
- Build the app via
lib/example_caching.dart
- See error
Error messages
(flutter: Error loading audio source: (-11850) Operation Stopped)
Expected behavior Should download and load the source file from cache.
Screenshots
- Not applicable
Desktop (please complete the following information):
- Not applicable
Smartphone (please complete the following information):
- Device: iPhone 15
- OS: iOS 17.0
Flutter SDK version
epsilon@192 pynea-frontend-app % flutter doctor
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 3.16.0, on macOS 14.1.2 23B92 darwin-arm64 (Rosetta), locale en-RO)
[✓] Android toolchain - develop for Android devices (Android SDK version 31.0.0)
[✓] Xcode - develop for iOS and macOS (Xcode 15.0)
[✓] Chrome - develop for the web
[✓] Android Studio (version 2022.1)
[✓] VS Code (version 1.85.0)
[✓] Connected device (4 available)
[✓] Network resources
• No issues found!
Additional context Add any other context about the problem here.