play loaded file from http from memory

Cor

Active Member
Licensed User
Longtime User
Don't want streaming because sound file is loaded from protected site

gives setdatasource error when running on device

File.DirDefaultExternal is ok
File.DirInternal error

Is it possible to play from memory without saving to file first

B4X:
'save to file

If TaskId = RequestId Then 'Fetch the main page
   Response.GetAsynchronously("MainResponse",File.OpenOutput(File.DirDefaultExternal, "lick.ogg", False), True, RequestId)
   Return
End If

B4X:
mp.Load(File.DirInternal,"lick.ogg")  'error
 
Top