I'm trying to have an app play sound files that are stored in a subfolder of my project's Files folder (there are a lot of small assets associated with my project and having them all together in the root of the Files folder would make them hard to manage).
However, when I try code such as the following, the file is not recognised. (Things work fine when the sound is in the root of the folder.)
Does MediaPlayer simply not work with files that are in subfolders? And if not, what am I doing wrong? Any help greatly appreciated.
Andrew
However, when I try code such as the following, the file is not recognised. (Things work fine when the sound is in the root of the folder.)
B4X:
Dim mp as MediaPlayer
mp.Initialize
mp.Load(File.DirAssets, "mysubfolder\myfile.mp3")
mp.Play
Does MediaPlayer simply not work with files that are in subfolders? And if not, what am I doing wrong? Any help greatly appreciated.
Andrew