IOS: play (not) sound of local filesystem - Error #2032

Hi all

I'm working on an application where I (among others) want to play audio files from the local file system.

I added a few mp3 files in my .ipa file.

With a file browser small in my application I can choose one of them which returns me a file object.

I then use this File object to a URLRequest to load the sound:

var req:URLRequest = new URLRequest (file.nativePath);

Sound = new Sound();

sound.addEventListener (IOErrorEvent.IO_ERROR, soundLoadError);
sound.addEventListener (Event.COMPLETE, soundLoaded);
Sound.load() (req);

It works in flash, but fails on the iPAD. Whenever I try to load, I get an IOErrorEvent with error code Error #2032

When I replace new URLRequest (file.nativePath) with URLRequest ("http://.../testfile.mp3"), everything works fine!

Any help appreciated.

Is it a question of security settings? Can I change these?

Something to do with sandboxing (whatever it is)?

or something to do with cross-domain access?

I've been looking around for days now and any help would be appreciated!

I use Flash CS5.5 & AIR 2.7

Thank you, Marcus.

Hi Marcus,

You can try (or maybe you tried):

var path: String = file.url;

var req:URLRequest = new URLRequest (path);

?

Kind regards

Peter

Tags: Adobe AIR

Similar Questions

  • IPhone 6 IOS 9.3.1 does not ring when a call comes, neither text does not sound a notification.

    IPhone 6 IOS 9.3.1 does not ring when a call comes, neither text does not sound a notification.

    Have you checked the obvious things? E.g.Ring/Silent switch on the left side is not on? Control the volume of ringtone under settings/sounds?

    If they are not serious then have you tried power the phone off and on again? Other sounds work fine, or if all sounds are dumb? for example can play you music through the speaker?

  • My Apple TV is only to play a sound on my iPad but will not show the film?

    My Apple TV is only to play a sound on my iPad but will not show the film?

    Welcome to the Jennifer Apple community.

    Some content providers don't block the video portion working with AirPlay, have you checked to see if AirPlay is supported by this provider.

    If it is supported

    these steps, check to see if things work after each step if necessary, before you try the next.

    1. Check AirPlay is on the Apple TV (turn market if it already is)
    2. Check that both devices are on the same network (settings > Wifi on the mobile device and the settings > General > network, on the Apple TV).
    3. Restart the Apple TV (settings > general > restart).
    4. Restart the Apple TV by removing ALL cables for 30 seconds.
    5. Restart your router. (Also try to remove the power cord for at least 30 seconds)
    6. Restart your mobile device.

    If you're still having problems, the following article can help you.

    Troubleshooting AirPlay

    Troubleshooting connections and Wi - Fi networks

    Recommended Wi - Fi settings

    WiFi Diagnostic Software (for Mac users)

    You will also find help on this page, where I have collected some of the more unusual solutions for network problems.

    When you make adjustments to your network for better optimization, you can find some of the points mentioned onthis page useful.

  • Equium A100-306: built-in speakers do not play certain sounds

    I got my A100-306 for 2 weeks, and my speakers do not play certain sounds. This problem appeared only in recent days. When I go in the speaker settings control panel it says that there are no speakers.

    Can someone tell me what to do to fix this?

    Very strange
    I think you should check several possibilities:

    -Plug the headphones and check if you can hear the sound through the headset.

    S ' Please check the Device Manager. Do you see any yellow exclamation?
    Try to remove the sound card and remove the audio driver.
    After restarting again try to reinstall the driver of its new.

    -On the laptop the Realtek HD sound effects Manager must be installed.
    Please check the settings there.

  • Windows Media Player does not play with sound .m2ts.

    WMP does not play with sound .m2ts.  used for, it is no more.  I tried the ms fix the thing did not help the cause.  What can I do to fix this?

    Hello

    1. which version of the Windows operating system is installed on your computer?

    2 have you made changes on the computer before this problem?

    3. what version of Windows Media Player do you use?

    4. are you able to play .m2ts files to other players?

    5. what exactly happens when you try to play the file?

    I suggest you try to install Codecs and see if it helps.

    Codecs: Frequently asked questions:

    http://Windows.Microsoft.com/en-us/Windows7/codecs-frequently-asked-questions

    Warning: Using third-party software, including hardware drivers can cause serious problems that may prevent your computer from starting properly. Microsoft cannot guarantee that problems resulting from the use of third-party software can be solved. Software using third party is at your own risk.

    See the following article from Microsoft to check the version of Windows Media Player.

    http://support.Microsoft.com/kb/190990

    Hope the information is useful.

  • my xp may not sound? It is an error in the COD10

    my computer does not have any sound.there is an error CODE 10.

    Make a right click my computer in the Start Menu, and then select Properties.

    Click the Hardware tab, click Device Manager,

    Expand: Sound, video and game controllers, just click your sound (example: SigmaTel C-Major Audio) and click on uninstall.

    Click OK to confirm. Restart your computer, if there is still no returning right click, then choose Update Driver.

    If still no success please visit your website to it decision makers and check for an update of the driver.

    http://support.Microsoft.com/kb/943104 read this.

  • Receive automatic updates for Windows XP "error 127: the specified procedure could not be found." Also "error 0 x 80240036: could not start the service automatic updates on local computer»

    Update CPU which proved later to be bad.  Replaced by original CPU.  Re-installed Windows XP Home using a slipstreamed CD that I burned the original non - OEM drive that has Service Pack 2.  Integrated Service Pack 3 which I got from the MS. site  Everything works well except for Windows Update.  The setting seem to be correct in Administrative Tools/Services.  The status of the Service is "stopped".  When I try to start the automatic updates from Administrative Tools/Services I receive "error 127: the specified procedure could not be found."  Also "error 0 x 80240036: could not start the service automatic updates on local computer»  Used the range of anti-virus and malware and found nothing.  Currently using Avast 7.0.1426.  I also used various tools of Fix - It MS nothing helps.  Any help would be greatly appreciated.  Thank you.

    Hello

    1. what application or antivirus security suite is installed and your current subscription?

    2 Norton (another) or a McAfee application ever installed on this machine?

    3. What are the fix applications that you used so far to try to fix this problem?

    Try the next method and check if that helps you with the question of the 127 error you receive.

    Method 1: Rdding the DLL file by doing the following:

    1. Click Start and click Run, in the search box type CMD and press to enter.
    2. right click on CMD in the list and click "Run as Administrator".
    3. type the following command and press ENTER. Regsvr32 msvcp71.dll
    4. close the command prompt window.

    Method 2: run the file system (CFS) Checker:

    (Note: you need an XP installation disk to start the System File Checker search.)

    The SFC command is used to detect and resolve problems with the files on Windows XP and Windows Vista computers. This command allows you to launch the Windows File Protection Service and allows you to analyze all integrity-protected Windows files and replace all problematic files identified.

    1. click on start, and in the box to start, search type CMD
    2. right click on CMD in the list and click "Run as Administrator"
    3. type the following command and press ENTER. Sfc/scannow
    4. close the command prompt window.

    For more information on scan SFC (System File Checker), please look in the link mentioned below.

    http://support.Microsoft.com/kb/310747

    I hope this helps.

  • Could not start service windows drivers Foundation-User-Mode Driver Framework on the local computer, error 31: a DVICE attached to the system does not work

    When I go to start the Service for Windows drivers Foundation I get the following error message, cannot start service window drivers Foundation-User-Mode Driver Framework on local computer, error 31: a device attached to the system is not functioning

    I was not able to find an answer in help

    Unless you write your own drivers for XP and using the Windows Driver Foundation Service to help you debug, you can disable the WDF Service.  It will be one less point to start your system and will not not just sitting there working day and night with nothing to do.

    On some systems, if WDF is activated, you can begin to see some errors of svchost.exe like this:

    Application error: the instruction at "0x7c91b21a" referenced memory at "0x00000010". Memory could not be "written".

    The best solution for this problem is: disable the WDF Service.

  • Error to connect to the webcast - Windows Media Player cannot play the file because a network error occurred. The server may not be available.

    Original title - PROBLEM WITH WINDOWS MEDIA PLAYER

    I tried to view a technical presentation online and this is the error I received; -what it means and how can I fix it?

    Windows Media Player cannot play the file because a network error occurred. The server may not be available. Check that you are connected to the network and that your proxy settings are correct.

    Hi NinaOwens,


    1. are you able to view the same content from a different computer?
    2. you get the error only with a particular file or with the majority of them?
    3. during how long have you had this problem?
    4. did you sons of recent change the computer?

    You can see the links below and check if the proxy settings are correctly performed. Also you can check the other links to verify network connections-
    http://Windows.Microsoft.com/en-us/Windows-Vista/change-proxy-settings-in-Internet-Explorer

    http://Windows.Microsoft.com/en-us/Windows-Vista/troubleshoot-Internet-connection-problems

    http://Windows.Microsoft.com/en-us/Windows-Vista/troubleshoot-network-connection-problems

     

    I hope this helps.

  • Does he know that "why can not play Mp3 sound using html5 in BB Simulator Playbook and Smartphone?

    Dear developer,

    I really nead help, so far I can not play mp3 sound after I developed application but in android her beautiful work.

    in the bb Simulator cannot play mp3 and wav its woking, any body know why? and I have prolem "I can't hear an echo of the sound API in the Simulator also mp3, but in android it works well, please give me solution bro, thank you to hear me."

    respect,

    Fery

    This is probably due to a missing codec.  Simulators have not the same level of multimedia support direct devices do.

  • Windows live mail will not play a sound when new mail arrives

    Windows live mail will not play a sound when the mail comes and will not report in the task bar. I 'play a sound when niew messages come' checked in the options. What could be wrong?

    Hello

    The question you have posted is related to Windows Live mail and would be better suited to the Windows Live community. Please visit the link below to find a community that will support what ask you:

    http://www.windowslivehelp.com/product.aspx?ProductID=15

  • A Notification alert text - not always play a sound?

    Hello-

    I'm new to these forums and I've been skimming them for about 2 hours now and I have not seen this question posted anywhere, so I hope this is a new post.

    We should now know all that we can change our text alerts to be our own custom - ringtones very well!

    My problem is that, sometimes, the alert displays on the phone, but for some reason, the sound does not play.

    Does anyone else have this problem? Most of the time the text alert plays very well, but sometimes after a long time don't receive any text message, or if I get some time after another, it is not just playing the tone. All the volume controls in the settings are cranked up to full speed, but the tone does not sound right. Unusual? I think that Yes... but maybe I'm not alone.

    So, it looks that the device is not sufficient to allow his awakening. If you have not already done so, you can do a wipe applications and data from device information, reset the Options, delete Apps & data, (all PIM data on the device will be deleted and then restored you backup such as Palm or Google profile source, etc.). This can solve the problem and is worth a try. I would like to perform a manual backup of backup before you try this option.

    If you have already tried this option, you can download and run Web OS doctor to repair the ROM on the device. You can get this information from www.palm.com/ROM, you enter the serial number and download Web OS Dr. and follow the instructions.

  • Sometimes sound does not play when you play multiple sounds simultaneously

    It is also a matter of best practices, too.

    I built a game that uses many different sounds (about 48 I think). Many are short, less than a second and a few are longer, of the music cues, etc..

    Example problem: sometimes when there are a lot of play sounds and a music signal is supposed to fire, the sound of the music does not play. I did a trace on the function that plays the sound music and performs this function. Are there limits to how sounds can play at the same time? (It does not only happen to a particular sound, could be any noise)

    Also, regarding best practices, if there is a sound that could be played several times at the same time, a new instance of the noise must be created each time as its played? If there is that a single instance of this noise, will be the previous reading of this noise cancelled when it is called for replay?

    Thank you

    Adam

    There is a soundchannel 32 limit (which may exist at a given time) imposed by the flash player.  all two identical sounds may not play in a number of ms on the other.  There is no perceptible advantage and refusing the deductions that you may be able to play the sounds that are noticeable.

  • its iOS is not always available through the speakers.

    I tried to play a video on my iphone (latest version of ios) and the sound did not come through the speakers. I had to plug in the headphones. I tried youtube, facebook and play the sound through the speakers. What is the problem and how to fix it!

    Thank you

    Try steps here If you hear no sound or distorted sound of your iPad, iPhone or iPod touch speaker - Apple Support

  • Portable speakers won't play all sounds

    I have a Dell Inspiron 1420, and somehow the built-in Laptop speakers won't play any sound at all, even when Windows starts. I run on a Windows Vista.

    In any case, I tried to go to Device Manager to uninstall my sound thing called "High definition Audio Device", but this still does not work. Then I tried updating the driver, still not working.

    The audio works when I plug headphones to one of the thing taken, but only on one, I have two of these good output jacks.

    Can someone guide me please how I can solve this problem? Thank you.

    Try to run the Dell Diagnostics audio tests. These interactive audio tests are designed to limit the problem software or hardware. The tests are independent of Windows and drivers, meaning that it is not serious if those who are working properly or not. To run Dell Diagnostics

    1 restart the computer and press the f12 key as soon as it begins to initialize.
    2. Select 'Diagnostic' in the start menu. The computer will run its evaluation of pre-boot (PSA) tests before the start of the Dell Diagnostics. In the PSA, you will hear some tones in the speaker system but it does not adequately test the audio hardware. Dell Diagnostics plays an instrumental piece of music complete with battery, so if you hear only a few tones then you have run only the PSA.
    3 Dell Diagnostics should open after the PSA tests, or you should see an option to open it. If you've never reformatted your entire hard drive then Dell Diagnostics will be gone as an option. In this case run it from the CD Drivers and Utilities (resource) If you have a.
    4. Select 'Custom', then the audio tests. (At this point - after you open Dell Diagnostic custom - if you can't find the option to select the audio test is a symptom of an audio chip faulty.)
    5. the tests will run. Alternatively using headphones and listen to the speakers in case a signal path works.
    The tests will play some audio and ask you if you heard.
    6 If you do not hear the music during the test, it certainly means that there is somewhere a hardware failure in the system. In this case Dell will repair the computer if it is still under warranty.
    7. If you hear the audio during the test, but not when you start in Windows, that almost always means the material is correct, but there is a problem with the audio driver or Windows.
    8. error codes: If you answer "no" to any question that the test ask, test generates an error code which can indicate a Dell technician that you answered 'no' to this question. The test does not know the exact component that went wrong. Before you answer "no" to a question, take note of the circumstances at that time here so that you know in general what is the error code.

    *****************************************************************************************************

    If the terst passes then try reinstalling the Sigmatel HD audio driver. You can find it in the Audio category of 1420 downloads page. I suggest that for best results you do not use the Dell Download Manager, simply download the normal way you would be using your browser.

    *********************************************************************************************************

    If the problem persists after installing the driver, you might have a problem with one of the headphone jacks when a computer has this combination of symptoms:

    * Speakers do not work and are not active or deselected
    * Headphone Jack works
    * Reinstall audio driver does not help
    * Audio test Dell Diagnostics passes
    * On models with 2 headphone jacks, you can be "verified" in the dashboard as if in use

    Laptops from Dell with 92HD audio using universal sockets of IDT, which is a bit complicated. In addition to the usual mechanical parts, making also uses current technology & detection of impedance to software configuration of trigger and switching (to send the audio signal to the speakers). There are three areas of potential failure: mechanical, electronic and software. Sometimes a little gentle wiggle of a plug in the plug will get to resume normal operation, at least temporarily. There is a safety edge stem into the socket (pin Sense_A) that is used to detect the presence of plugs, and it may be the cause of the failure to trigger the ignition of the software. Failure of the sense pin usually results in the computer behaves as if there is always a plug into the socket.

    Normally the audio test of Dell Diagnostics would confirm that there is a hardware problem, but universal Sockets can cause a false result Diagnostics. This is because diagnoses running BACK, outside of Windows, so a software configuration problem Windows is not relevant to test even if in this case it is caused by the material. If the audio test can spend in Diagnostics, signaling correctly that the configuration of the software is the immediate cause of the problem, but it lacks a hardware, the Jack or safety edge Rod problem, what the root cause. In these cases the reliable diagnostic procedures are only to try a new motherboard or use PC Restore (called Factory Image Restore in Vista) to restore the computer to its original as in factory configuration. If the speakers do not always work after PC/Factory Image Restore, then it is definitely a hardware issue even if it passes the audio test Dell Diagnostics normally infallible.

Maybe you are looking for