Flutter-AssetsAudioPlayer
Flutter-AssetsAudioPlayer copied to clipboard
The requested URL was not found on this server., null)
I need to play audio from device gallery
i am able to do this with your plugin
but when i play it several time it says
issue is on ios device only(my iPhone is iphone8 (os version 15.6.1) )
"--------->. The requested URL was not found on this server., null). <----------"
Step to reproduce
- Open audio select screen select audio and play it
- Back to previos screen .
While performing this steps multiple time
at one place it giving this error
i using a simple code
` void playAudio(){ final assetsAudioPlayer = AssetsAudioPlayer(); assetsAudioPlayer.open( Audio.file(audioUrl ?? ''), ); }
@override void dispose() { assetsAudioPlayer.pause(); assetsAudioPlayer.dispose(); super.dispose(); }
`
Doctor summary (to see all details, run flutter doctor -v): [✓] Flutter (Channel stable, 2.10.0, on macOS 12.4 21F79 darwin-x64, locale en-IN) [✓] Android toolchain - develop for Android devices (Android SDK version 33.0.0) [✓] Xcode - develop for iOS and macOS (Xcode 13.2.1) [✓] Chrome - develop for the web [✓] Android Studio (version 2021.2) [✓] Connected device (2 available) [✓] HTTP Host Availability
same issue, did you find any solution to this