I'm trying to figure out the best way to play a MP3 file located on my SDCard. This will be just for my use so the directory structure is known.
The directory structure is:
SDCard Root/
Music/
Artist/
Album/
Song.mp3
I'm currently using the ExternalStorage class and I can drill through the directories to get the ExternalFile for the selected Song.mp3.
My questions:
How can I use this to play the file (in either ExoPlayer or MediaPlayer)?
Would it be easier to just copy the SDCard file to an internal directory and play it from there?
The directory structure is:
SDCard Root/
Music/
Artist/
Album/
Song.mp3
I'm currently using the ExternalStorage class and I can drill through the directories to get the ExternalFile for the selected Song.mp3.
My questions:
How can I use this to play the file (in either ExoPlayer or MediaPlayer)?
Would it be easier to just copy the SDCard file to an internal directory and play it from there?