[AC-2658] iOS: Ti.Media.AudioPlayer can't play local audio files (using the url property)
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | n/a |
Status | Closed |
Resolution | Duplicate |
Resolution Date | 2012-08-20T10:11:32.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | Titanium SDK & CLI |
Labels | AudioPlayer, defect, ios, parity, titanbeta |
Reporter | Shawn Lipscomb |
Assignee | Mauro Parra-Miranda |
Created | 2012-08-17T12:41:58.000+0000 |
Updated | 2016-03-08T07:41:45.000+0000 |
Description
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}
Comments
- Shawn Lipscomb 2012-08-17
- Varun Joshi 2012-08-20 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
- Shawn Lipscomb 2012-08-20
- Varun Joshi 2012-08-20 Duplicate of TIMOB-9409.
- Abdoulaye Siby 2013-06-04 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
- Mauro Parra-Miranda 2013-11-24 DUP issue.
- Abdoulaye Siby 2013-11-25