Using a supplied example but trying to load and play a song from the device (Android 6) and using B4A 9.9
I am unable to play the song and get the EACCES error as titled above???
What am I doing wrong - or more likely failing to do..
Public Sub Play
Service.StartForeground(nid, CreateNotification("Playing music - Radio Paradise"))
'pl.Prepare(pl.CreateUriSource("http://stream.radioparadise.com/aac-128"))
Dim MyFolder As String
MyFolder=File.DirRootExternal & "/Music"
pl.Prepare(pl.createfilesource(MyFolder, "Standingthere.mid"))
pl.Play
End Sub
I am unable to play the song and get the EACCES error as titled above???
What am I doing wrong - or more likely failing to do..
Public Sub Play
Service.StartForeground(nid, CreateNotification("Playing music - Radio Paradise"))
'pl.Prepare(pl.CreateUriSource("http://stream.radioparadise.com/aac-128"))
Dim MyFolder As String
MyFolder=File.DirRootExternal & "/Music"
pl.Prepare(pl.createfilesource(MyFolder, "Standingthere.mid"))
pl.Play
End Sub