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
-
Problem of media files
I have the problem on the following computer: Windows Vista does not recognize the media files (audio, mp3, files videp). I tried to use also other players (winamp, video live), the result is the same, no game.
Hi ArturHarutyunyan,
· What happens when you try to use Windows Media Player to read the files?
· What is the exact error message?
· Remember to make changes before the show?
You can try the below mentioned link and check to see if they help.
http://support.Microsoft.com/mats/windows_media_player_diagnostic/
Hope the helps of information. Please post back and we do know.
-
Windows Media Player unable to play media files
License migration
I recently got a virus in my system, I had to have my computer cleaned up so I could get back to using my computer. In any case, in my library of music 11 windows media I get 'You need a license to play this content' and blah, blah, blah. And then they start talking about license migration, and they tell me that I have to download a new license, but when I try to get this 'NEW' license it is some type of "screw up / error" and I can not play my content without going through rubbish even every time without any result of corrective.
Help!I recently got a virus in my system, I had to have my computer cleaned up so I could get back to using my computer. In any case, in my library of music 11 windows media I get 'You need a license to play this content' and blah, blah, blah. And then they start talking about license migration, and they tell me that I have to download a new license, but when I try to get this 'NEW' license it is some type of "screw up / error" and I can not play my content without going through rubbish even every time without any result of corrective.
Help!===============================
What is the error message?The following items may be worth a visit:
(925705) when you try to use Windows Media Player 11play a digital rights management (DRM) - protectedMultimedia, media cannot play(this article specifies that the issue you're dealing with)
can be caused by reinstalling Windows)Windows Vista-
Privacy statement for Windows Media Player 11John Inzer - MS - MVP - digital media experience
-
I recently changed my laptop and transfer on multimedia files for the new laptop.
The files are in WMA format, and when I try to read, I got an error message as below:
"Your media usage rights were corrupted or are no longer valid. This can happen if you have replaced hardware components in your computer. »
What should I do?
Thank you!
Hey Joe,
Refer to these links that are marked as answer suggestions:
You can also follow the additional troubleshooting steps:
- Right-click on the Start -> Control Panel.
- Select appearance and personalization.
- Click on Folder Options.
- Select the view tab.
- In the Advanced settings area:
- Click Show hidden files, folders and disk radio button
- Uncheck the Hide protected files (recommended) operating system.
- Press Yes when you get the Microsoft Warning prompt window.
- Click apply, then OK.
- Go to C:\ProgramData\Microsoft\Windows\.
- Find the DRM folder, rename the folder "DRM_old".
Please let us know if the problem still persists.
-
I have Media Player 11 and Windows 8. Both programs are updated. I can't read this file because something to do with the codec.
Hello
The Windows media player 12 comes pre-installed with Windows 8
1. what version of Windows and Windows media player installed on the computer?
2. What is the extension of the files you are trying to play?
3. you play the files on the computer or on CD/DVD?
If you use Windows Media player 11, please see:
You receive a codec error message or play audio but video does not play when you play media files in Windows Media Player 11
http://support.Microsoft.com/kb/926373
Please answer back with the information required to solve the problem.
-
Outlook has been changed from hotmail, my emails say don't link with windows media player, outlook is not their problem, but it happened only when they merged account
I have to be able to open MP3 files that ae sent emails in my work, it's urgent, please I need to know what settings to correct to sort this please
It comes to getting the error message
There was a problem playing this file. (0xC00D0FEA: "Windows Media Player has encountered a problem during the download of the file.) For any additional help, click Help on the Web. »)
E-mail address is removed from the privacy *.
Hello
Method 1:
See the article and check if that helps:
Windows Media Player sync: frequently asked questions
Method 2:
I suggest also refer to the thread with a similar problem and a possible solution:
It will be useful.
-
BlackBerry Smartphones error message appears when the media files are played
When I try to play multimedia files from the internet or multimedia card a message: "cannot read media files while voice dailing is enabled.
Play media files always worked, but since yesterday after I used the service of voice for the first time this strange message keeps appearing. Handheld power off does not work. Is anywone know how to disable the voice service or is there a workaround?
Kind regards
B. Dambrink
The Netherlands
Ok. You still haven't answered one question my ISP / location. In the case of the Association and the United States,.141 isn't the latest version. In fact, there are several posts on the de.141 problems once it was leaked. The most recent est.148. The link below will show all of the current versions of the listed suppliers. I say pas.148 will solve the problem, but there is a good chance that it will be. You should be able to play multimedia files using headset with bluetooth turned off.
http://supportforums.BlackBerry.com/Rim/Board/message?board.ID=9500&thread.ID=28627
-
Windows Media Player cannot play audio files
Hi, I have Toshiba laptop, this is my baby, and all of a sudden I can't play sounds! When I click to play a song in windows media player, it says:
Windows Media Player cannot play the file because there is a problem with the audio device. It might not be a sound device installed on your computer, it can be used by another program, or it may not work properly.
I tried everything and I'm on my last nerve! Basically, I'm rubbish with computers, I do not understand this at all, I followed all the ways suggested by the section 'aid' in my computer and I can't always listen to 'The Feeling!' Please help, I'm going crazy here!
Yes my friend. The computer world is really not easy to understand, and sometimes I wish that I could no longer live the island of computer.
but you know, the development never stop.OK, now your problem; have you checked the Device Manager?
You don't see any yellow exclamation next to the sound card?I think that you should first try reinstalling the audio driver. Of course, it s a very tips but especially it works essentially ;)
-
My Satellite A200 does not play almost all media files
So, I have a problem with my Satellite A200. I bought it 2 weeks ago and since then I can't play any of my media.
He plays only music files, and that's all. I downloaded many codec Pack such as: ACEMCP603PRO, VistaCodecs_v453, K-Lite Codec Pack full etc.
But nothing works!I'm desperate to PLEASE, someone help me
Hello
Before starting the discussion can you please tell us two things:
-a your settings to factory for laptop (OS is not modified) and
-What media files, you try to play and what are the applications that you are trying to use? -
Video codec required to play the file in Windows Media Player
original title: Media Player
How can I solve the following problem? Thank you.
Error message:
"Windows Media Player cannot play the file because the required video codec is not installed on your computer."
How can I solve the following problem? Thank you.
Error message:
"Windows Media Player cannot play the file because the required video codec is not installed on your computer."
=========================================
You can try to download and install a codec pack
or you can try using another media player.No guarantee... but maybe it would be interesting to try
Download and install the following free codec pack:(FWIW... it's always a good idea to create a system)
Restore point before installing software or updates)K - Lite Codec Pack (full)
http://www.filehippo.com/download_klite_codec_pack/
(Windows XP - Vista - 7)One of the following freeware media readers can
be worth a try... they'll play anything.(FWIW... it's always a good idea to create a system)
Restore point before installing software or updates)VLC Media Player (32-bit)
http://www.filehippo.com/download_vlc_32/
(works on XP/Vista/7)
(the name of the file to download is: vlc - 2.0.4 - win32.exe)VLC Media Player (64-bit)
http://www.filehippo.com/download_vlc_64/
(the name of the file to download is: vlc - 2.0.4 - win64.exe)
(FWIW... it's always a good idea to create a system)
Restore point before installing software or updates)Media Player Classic Home Cinema
http://www.videohelp.com/tools/Media-Player-Classic-home-cinema
(works on XP/Vista/7) (The name of the file to download is:)
"mplayerc_homecinema.1.6.4.6052.x86.exe).
(start with left click - Download (direct link) -
Windows Media Player cannot play the file
I get the following message appears when you try to listen to a streaming radio station live online.
Windows Media Player cannot play the file. A network firewall might prevent the player to open the file by using the UDP transport protocol. If you typed a URL in the open URL dialog box, try using a different transport protocol (for example, "http:").
I can listen to other stations, but not this one. Before about 2 weeks ago, I had no problem getting the live stream. Has been no change on my computer. URL is: http://www.wlpv1079online.com/Live%20Streaming%20Page.htm
Hi Kathy,
1. what operating system is installed on the computer?
2. which web browser is installed on the computer?
3. What is the accurate and complete error message you get?Method 1
I suggest you try the steps from the following link:Windows Media Player Error Message help
http://www.Microsoft.com/windows/windowsmedia/player/Webhelp/default.aspx?&mpver=11.0.5721.5145&ID=C00D11B6&ContextId=70&OriginalID=C00D2EF9Method 2
If the problem is with a particular station, then I suggest you to contact the support of the radio station.Method 3
I suggest you to disable the firewall and see if the problem still occurs.Enable or disable Windows Firewall
http://Windows.Microsoft.com/en-us/Windows7/turn-Windows-Firewall-on-or-offNote: Make sure that you enable the firewall after troubleshooting is completed.
-
Original title: Windows Media Player shows that the new codecs are required
Original title: query codec and Media Player re
Have used windows media player for many years on my dell. Usually to see the videos from Sony handycam. Just downloaded wmediaplayer and recent videos from Camcorder will not open one of the videos.
The following message is displayed "Windows Media Player cannot play the file. The player might not support the file type or a required codec may not be installed on your computer. »
As I have not changed anything helpful suggestions please.
concerning
The winemaker
Hello
1. What is the format of the video file?
2. what operating system is installed on the computer?
Method 1: Run the troubleshooter in Windows Media Player on Windows 7 settings:
http://Windows.Microsoft.com/en-us/Windows7/open-the-Windows-Media-Player-settings-Troubleshooter
Method 2: You can check if the file format of the music files are supported by Windows media player using the link below.
Information on the types of media files that supports Windows Media Player
Note: If you have tried to play the file type is included in this table, the file might have been encoded with a codec that is not supported by Windows Media Player. If this is the case, Windows Media Player cannot play the file.
Method 3: In addition, you can also download & install the necessary codec to play the files.
For more information, see: Codecs: frequently asked questions
(For Windows Vista)
WARNING of THIRD PARTY SOFTWARE: 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.
Hope this information is useful.
-
Windows Media Player won't play the .zip files. How to see or play these files?
Media Player
Windows Media Player won't play the .zip files. How to see or play these files? I'm 67 and not tech savvy thanks for the help.Hello
ZIP files are compressed, so you need to unzip and then play the content if the
content is of type WMP files.Compress and uncompress files (zip files)
http://Windows.Microsoft.com/en-GB/Windows7/compress-and-uncompress-files-ZIP-filesI hope this helps.
Rob Brown - Microsoft MVP<- profile="" -="" windows="" expert="" -="" consumer="" :="" bicycle="">-><- mark="" twain="" said="" it="">->
-
Windows Media Player
No matter what I try to play, I get this message, "Windows Media Player has encountered a problem while playing the file." And the media player does not workReset the WMP.
Step by step instructions are given here: -.
-
Windows Media Player encountered a problem while playing the file. (MPEG)
Windows Media Player encountered a problem while playing the file. (MPEG)
Don't know why Windows Media Player does not accept your mpeg.
Just a suggestion:
Use a video converter and change your mpeg to wmv format and read it.
If you don't have a video converter, google for a free Converter. No need to buy a.
You can also install VLC media player.
It's free.
He plays almost all kinds of formats.
It is widely used and recommended.If you are interested, here is the link:
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
-
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?