Titanium JIRA Archive
Appcelerator Community (AC)

[AC-2658] iOS: Ti.Media.AudioPlayer can't play local audio files (using the url property)

GitHub Issuen/a
TypeBug
Priorityn/a
StatusClosed
ResolutionDuplicate
Resolution Date2012-08-20T10:11:32.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsTitanium SDK & CLI
LabelsAudioPlayer, defect, ios, parity, titanbeta
ReporterShawn Lipscomb
AssigneeMauro Parra-Miranda
Created2012-08-17T12:41:58.000+0000
Updated2016-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

  1. Shawn Lipscomb 2012-08-17

  2. 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
  3. Shawn Lipscomb 2012-08-20

  4. Varun Joshi 2012-08-20

    Duplicate of TIMOB-9409.
  5. 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
  6. Mauro Parra-Miranda 2013-11-24

    DUP issue.
  7. Abdoulaye Siby 2013-11-25

JSON Source