took code from example in forum
local path = system.pathForFile( “”, system.CachesDirectory )
download from website :
network.download(“http://www.(my website)/sarah.mp3”, “GET”,networkListener, params,“sarah.mp3”,system.CachesDirectory)
this works and downloads and saves file to system.CachesDirectory , I can manually goto the directory and play the file.
THEN…
this does not work
Music = audio.loadStream(path…"/sarah.mp3" )
audio.play(Music)
error message :
audio.loadStream() failed to create stream ‘/Users/rogerholmes/Library/Application Support/Corona Simulator/isaacsTalent-C0BC209F9D0AC7DA65823045F566D1B6/Caches/sarah.mp3’
what am I doing wrong?