Trying to make a playlist of audio files which are already there in the mobile. I saved them in tinydb with filename tag and value would be its activity starter resultUri then displayed through listview. Wish to play the audio file when click on specific listview item. Having error instead : Error 703: unable to load.
Here are some images for your consideration -
Ma'm, Actually, want to use whole thing in another app so need to understand how it works ..... otherhand we already have apps which have playlists like vlc, google play etc. .... thanks for the app. If you could provide its .aia that would be very nice.
@Taifun Thanks ..... it might be the solution .... let me try.
@SteveJG Listview and tinydb is working ..... Can 20% create problem or as TIMAI2 said need to convert uri to standard file path.
The Player component cannot play audio files from a removable SD card.
It works with the URI only when an audio file is picked. And not if you do it later using the ListPicker or ListView. Then a real path (absolute or better full path) is required, because audio files from a removable SDcard can only be played with a full path.
I used the TaifunPlayer from @Taifun in my test app.
I used Sunny's FileTools extension (@vknow360) to get a real path from URI.
I used my MyFonts extension (and MaterialIcons.ttf) for the Play/Pause/Stop buttons.
You now have all the information to try it yourself.