You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I made sure that the issue I am raising doesn't already exist
Current bug behaviour
Add an audio resource to a package and try loading it from the app which uses the package. E.g. AudioPlayer().play(resourcePath) where the path is "packages//". Below code in AudioCache seems to be looking for resources in the app assets ignoring the package specification as seem in below line from audio_cache.dart file
final byteData = await loadAsset('$prefix$fileName');
Checklist
Current bug behaviour
Add an audio resource to a package and try loading it from the app which uses the package. E.g. AudioPlayer().play(resourcePath) where the path is "packages//". Below code in AudioCache seems to be looking for resources in the app assets ignoring the package specification as seem in below line from audio_cache.dart file
final byteData = await loadAsset('$prefix$fileName');
Expected behaviour
Should allow resource loading from packages.
Steps to reproduce
flutter run
on the code sampleCode sample
Code sample
Affected platforms
Android, iOS, web, Windows, Linux, macOS
Platform details
No response
AudioPlayers Version
6.0.0
Build mode
No response
Audio Files/URLs/Sources
No response
Screenshots
No response
Logs
Full Logs
Flutter doctor:
Related issues / more information
No response
Working on PR
no way
The text was updated successfully, but these errors were encountered: