Problem
Under iOS, trying to play a local audio file (the MP3 file exists in the Resources directory of the project) using Ti.Media.AudioPlayer fails with the following error message (popup dialog):
{panel}{noformat}Unable to configure network read stream{noformat}{panel}
and the song does not play.
The same code works correctly on Android. Therefore, it is also a parity issue.
Testcase
{panel:title=app.js}
SoundtrackPlayer=Ti.Media.createAudioPlayer({
url:'APopularSong.mp3',
allowBackground:false
});
SoundtrackPlayer.start();
{panel}
Hi Shawn, The only difference I see is the Studio version. So, I think you should watch TIMOB-9409. There should not be a need to have duplicate tickets. Thanks, Varun
Duplicate of TIMOB-9409.
There is a work around. People can simply use the video player. http://developer.appcelerator.com/question/133414/how-to-get-timediacreateaudioplayer-to-play-local-files#answer-263837
DUP issue.