just_audio icon indicating copy to clipboard operation
just_audio copied to clipboard

Provide AudioSource.asset() for handling assets

Open eximius313 opened this issue 3 years ago • 1 comments

Is your feature request related to a problem? Please describe. If somebody wants to use a resource file, they must come up with proper URI (what is even worse I couldn't find it in documentation - StackOverflow helped me)

Uri.parse("asset:///audio/file.mp3") or Uri.parse("asset:/assets/audio/file.mp3")

Describe the solution you'd like dedicated AudioSource.asset() would be a great help

Describe alternatives you've considered proper documentation would also be helpful

Additional context not needed I guess.

eximius313 avatar Jul 05 '22 20:07 eximius313

I have created a documentation request at #772 to document the format.

The proposal to have an AudioSource.asset() convenience method is an interesting one, I'll have to think about it.

ryanheise avatar Jul 06 '22 01:07 ryanheise