Uploaded image for project: 'Appcelerator - INBOX'
  1. Appcelerator - INBOX
  2. AC-2658

iOS: Ti.Media.AudioPlayer can't play local audio files (using the url property)

    Details

    • Type: Bug
    • Status: Closed
    • Resolution: Duplicate
    • Affects Version/s: None
    • Component/s: Titanium SDK & CLI
    • Environment:
      • Titanium SDK 2.1.0.v20120608174150
      • Titanium Studio 2.0.2.201205311912
      • iOS 5.1 (simulator)
      • Mac OSX 10.7.2

      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):

      Unable to configure network read stream

      and the song does not play.

      The same code works correctly on Android. Therefore, it is also a parity issue.

      Testcase

      app.js

      SoundtrackPlayer=Ti.Media.createAudioPlayer({
                         url:'APopularSong.mp3',
                         allowBackground:false
                       });
      SoundtrackPlayer.start();
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                mpmiranda Mauro Parra-Miranda
                Reporter:
                bitshftr Shawn Lipscomb
              • Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Git Integration