Play media files

Hello.

I want to create an application in which I need to play a media file (audio files), which is recorded in the application file.

After going through the web, I found only the media playback using "Media Player" to play from a server (download and play using the class "Loader") or reading a file stored in the device memory (the memory using the "File" class loading.

But, someone help me please in how to play a media file such as mp3 or other audio format good, which is stored in the folder of the application itself as 'src/Sound1.mp3 '...

Thanks in advance

Vineeth K.

Copy the following code

var sound : Sound;

sound = new Sound();

sound.load(new URLRequest(File.applicationDirectory.resolvePath("").url));

sound.play();

Tags: BlackBerry Developers

Similar Questions

Maybe you are looking for

  • Open message window is too big

    When I double-click on a message, it opens in a new window, which is what I want. The problem is too big for one of my two monitors. I can manually move the window with a tedious combination of keystrokes on the keyboard / mouse clicks, which would a

  • How to react to the messages in this forum?

    I posted a question about being re-directed to "my filestore. Thanks to jscher200 forcaregiver. I took the advice offered and will monitor the behavior of firefoxsee if the modules are the problem. Thanks again for help and I still want to know how t

  • Generate PWM signals with 1.5 ms pulse width

    Hi all I'm working on a project where I need to generate a PWM with a pulse between 1.3 and 1.7 width ms to order a servo rotation continues.  LabView is in communication with an arduino Uno microcontroller by LINX.  My original plan was to use the m

  • Language Packs Server 2012R2

    I'm unable to install language packs on the server 2012R2, I no longer get the 775 error using dism, or no valid language pack that is found when you try to use the language pack install tool.  I downloaded the language of 2.6 GB with all languages p

  • After you have reinstalled Windows, I am unable to install my Ethernet drivers

    original title: driver help I reinstalled windows xp on my compaq.  My enternet driver does not update and has a yellow question mark in Device Manager.  What can I do about it?  I searched all over the internet and don't know what to do?