Difficulty playing the big audio files/streams.

Hi all

I have an app that plays media (audio/x-wav).  The application is configured to listen to and read the audio data from a web service.  After that audio plays for the first time, the sound will be saved on the device.  Whenever the audio selected is played later, he can read the stored file.

Everything works fine, except when it comes to playing audio files.  When the Player tries to read the audio data from a big-InputStream, the application will take a few minutes to retrieve the stream and then the player will hit a State of 'ERROR', due to:

"Media cannot start while another media is active"

.  At this point, I did not open another medium, however.  Then when I try to play the audio again (this time this time locally from a stored FAT deposited (~ 5 MB), the application appears to hang - but it not to plant, it becomes just does more for about ten minutes.)  After ten minutes, the player will reach the State of "ERROR" an error of:

"Unload failed: Timed out waiting for UD|LD"

Has anyone else had similar symptoms when you try to play larger audio files?  What could be going on here?  Here is my code:

Reading an input stream:

try {
    Player player = Manager.createPlayer(responseData,"audio/x-wav");
    player.addPlayerListener(new PlayerManager());
    player.realize();
    player.prefetch();
    player.start();
} catch (IOException e) {
    System.out.println("ERROR: " + e.getClass() + ":  "+ e.getMessage());
} catch (MediaException e) {
    System.out.println("ERROR: " + e.getClass() + ":  "+ e.getMessage());
}

Reading a file:

try {
    Player player = Manager.createPlayer("file:///SDCard/Blackberry/music/" + file);
    player.addPlayerListener(playerListener);
    player.realize();
    player.prefetch();
    player.start();
} catch (IOException e) {
    System.out.println("ERROR: " + e.getClass() + ":  "+ e.getMessage());
} catch (MediaException e) {
    System.out.println("ERROR: " + e.getClass() + ":  "+ e.getMessage());
}

PlayerListener:

public class PlayerManager implements PlayerListener {

    public void playerUpdate(Player player, String event, Object eventData) {
        System.out.println("PLAYER EVENT: " + event);

        if (event == PlayerListener.ERROR) {
            Notify.alert(Constants.PLAYER_ERROR);
        } else if (event == PlayerListener.END_OF_MEDIA) {
            try {
                player.stop();
                player.close();
                player = null;
            } catch (MediaException e) {
                System.out.println("ERROR: " + e.getClass() + ":  "
                        + e.getMessage());
            }
        }

    }
}

Yet once again, I'd appreciate any help!

I solved this problem for my application. Check it out at:

http://supportforums.BlackBerry.com/T5/Java-development/how-I-fixed-quot-timed-out-waiting-for-UD-ld...

It will be useful.

Scott

Tags: BlackBerry Developers

Similar Questions

  • Just upgraded to El Carlos Moreira of 10.6.8 on my imac. Using 1.5 photos, many are torn to pieces, especially the big raw files. Any solution?

    Just upgraded to El Carlos Moreira of 10.6.8 on my imac (2010). With the help of pictures 1.5, many are shredded, especially the big raw files. Any solution?

    Select one miniature pixelation and try, if reprocessing RAW format will help.  The last RAW support update that you have installed with the upgrade may have changed you the treatment for your camera RAW format.

    To reprocess the file open RAW image in edit mode and use the command "Image > reprocess RAW."  Does return correct thumbnail?

  • Icon "Are the selected markers to separate the export audio files" is grayed out outside in the markers window. The titles show starts but no end of times, and yet time is calculated.

    I have a large wav file to finish securities as a mixer and inserted the CD markers where I want the marked pistes. Icon "Are the selected markers to separate the export audio files" is grayed out outside in the markers window. The titles show starts but no end of times, and yet time is calculated. Why can't I export those items marked as separate files?

    You must make the markers of track in regions for the Export of work function. Make sure that you have placed a marker at the end of the file, as well as at the beginning of each track. Then select all the markers in the marker list by left clicking the first then shift left click on the last. You can then merge markers in the channels using the comb as icon (3rd from left) at the top of the list of markers. You will then be able to export the lines marked as separate files.

  • under xp, I can use wmpplugin dll3.0.2.629 to play a certain audio file in win7, I can't get the plugin for FF, why

    Our site is lsracers.com, as soon as you open the site, an audio file is supposed to play, (lower left corner an icon)
    It is said, a plugin is required to read this content, it's on a win 7 Ltop. If I use a pc XP, it gave me the option to activate the plugin,
    Windows Media Player plugin dll3.0.2.629 and he plays the second file 02:40. Why I can't get the plugin does work with FF in win7?

    FredMcD said

    I opened my Inspector. That's all the help I can give you.

    I called the big players to help you. Good luck.

    BTW, do not forget the RWM , I spoke of? Watch the clip.

    Thank you Fred McD, are nailed and others who responded. Now you should go on the site and visit if you like auto racing, thanks once again for the people and Merry Christmas.

  • I just want to play and an audio file in a page of muse!

    I want to play and audio file on a page by clicking on a button connected without going through the audio player open in another tab or window, or at all for that matter. So far, everything I've tried including the widgets available audio in another open window with a scrub bar smack dab in the middle of the screen or it takes a playlist bar and limited scrub installed directly on the page.

    All the ideas!

    Jim

    It's just how it works. If you want other options you must use custom such as Soundcloud players and various streaming services offer.

    Mylenium

  • 'Forward' to move to the next audio file button does not work with audio books.

    Hi all

    My first problem I can't understand mine. I did a search through old messages using several key words and couldn't find it.

    -Sansa Fuze worm-1...

    -New firmware dated 12/27/09

    Mode - MSC

    I buy the audio book CD and then extract them to MP3 so I can listen to on the "rocket". I put all the MP3 of the book in a directory, use Mp3tag to put in place a track number, title, author, and such then I drag the folder to the folder "audiobook" on the "rocket".

    I start to play the first file, and most things work very well. The documents in the file and I cannot FF or REW in this file. When this file is complete, the "rocket" ahead to the next file of its own. Bookmarking works fine. When I try to use the 'next' button to move to the next file, however, nothing happens. If I try to use the 'back' button to go to the previous file, nothing happens. Very strange.

    The button works fine when I'm listening to MP3 music. I can jump forward or backward through the tracks normally. It is the same with podcasts.

    I don't normally jump before the audio book titles, but sometimes I'll do it if I lose interest in the book and hope to find something more interesting on a next track.

    Thanks in advance for any help with this one.

    See you soon.

    Generic audio books works a little bit differently from the Audible.  New audio book functionality, allowing any type of playable, always has the option of cool chapter mode, but it functiond otherwise than by playing an Audible book.

    Sound files have chapter breaks that can be selected in the part of the main work.  "Regular" audio books have just chapter-titles.  Try to select the chapter mode; It affects to jump between tracks.

    Bob

  • Not able to play the fieles audio using Windows Media Player - error: Windows Media Player Error Message C00D11B1

    Sometimes the Audio files are not played using Windows Media Player. Even if I'm not able to turn on/off the audio. Settings audio button is not working too.

    Error: Windows Media Player Error Message C00D11B1

    When I rebooted my dell Inspiron laptop, this problem does not occur, and I am able to hear the audio. Let me know the fix for this problem permanently.

    Hello

    If you're having trouble playing a song or video, it may be because of the codec problem. I would suggest trying the following steps and check if it helps.

    Method 1:

    Run the Windows media player convenience store settings and check. Follow the steps to run the Troubleshooter:

    1. Press the Windows key + Q on your keyboard and type Troubleshooting and click Troubleshooting under results of research.
    2. Now, click on programs.
    3. Click the Windows media player settings to run the troubleshooter.
    4. Click on library of Windows media player to run the troubleshooter.

    Method 2:

    I suggest you to refer to the help article and check if it helps.

    Windows Media Player C00D11B1 error

    http://Windows.Microsoft.com/en-us/Windows7/C00D11B1

     

    Let us know the status of the issue. If you need help, please after return. We will be happy to help you.

  • Different sound level on the exported audio files?

    Today, I opened Audition, created a session multitrack with sampling frequency 44100KHz, 2 channels (stereo) and 32-bit depth.

    I tried to merge a part of a song with the rest of another song, but I realized that the hearing has a low sound level as Windows Media Player or any other media player.

    I looked for any configuration that could make WMP change the original sound, but he did play the song with the original sound level

    If I have the low sound of hearing was something that wouldn't stay in the exported file.

    But he did! And it was always like that, not just today.

    What should I do?

    It is not entirely clear as to where is your lower level, but if you're talking about level hearing on the mixing being 3dB lower than what happens when you play multitrack, then the answer is simple - you need to reset the pan law-3dB center left/right cut (logarithmic) - this option is in the preferences > multitrack at the top of the pane. This will give you the same level on a file drop-down mixed or exported as you see on the screen.

    But if you talk of levels of listening about, then it is very difficult to make useful comparisons to all levels of output. WMP and hearing use drivers and completely different engines, to the sounds of Windows via the Windows mixer - which changes even when reading levels. Hearing, if it goes directly to an audio device via an ASIO driver, don't get disturbed by the operating system in the slightest (that is the idea...), but if she gets plugged into the operating system for the output, then once more, the level can be changed through the Windows mixer.

    But in the final analysis, it's not really important. Hearing files can be standardized so that the peaks are just below 0 dBFS, and if you do that, they will play correctly on any other player. If they seem to be more silent, it will be because of the overall volume of the file, and it is a decision of mix - nothing to do with the format of file at all. And this is often a problem with the mixture of two songs from different sources together - if it is been compressed a lot to make it sound louder and the other does not, while the levels will never match perfectly to the join, whatever you do. Your only recourse here would be to compress the most calm one more to match the first - but that 's going to change the sound, probably in ways you might not like.

    So, quite a lot of options, really.

  • Difficulty playing the video in the Desktop Application

    Hello

    I'm playing two H.264 encoded (.mov) videos in a desktop AS3 application. I tried publication Air and projector, but both have (different) problems with playback. When you test the SWF in Flash, both work very well.

    I use a simple NetStream function to play videos from a local directory. As I have said, that they both will work perfectly in Flash, so I feel like I'm missing something obvious, but have struggled to find documentation on the streaming locally.

    The application of Air works better, but can't seem to play the second video. (I have also had terrible evil to do around from safety of Air that I use LocalConnection in another part of the application, so prefer not to use it).

    The projector starts to play the two videos but soon began to stammer and choke and eventually freezes the entire application.

    The Adobe documentation states that it is possible to use NetStream locally, but maybe that's not the case?

    Anyone have any ideas?

    Thank you

    Maryann

    I think you started the right way - there is no reason to suspect that this problem would exist initially. I don't have a direct solution for you, but I find that it is useful for creating small samples of what is the problem and suggest trying the following...

    Create a simple SWF file that only charge & play video. Do nothing else in this file (in the unlikely event that something else is affected video playback) and then display them in the projector and the way air.

    Also, just try to use the video component included in another simple example and see projector/air, just to see if you encounter the same problems of reading. If you do, I had initially suspec something on your computer system compared to Flash.

    I have not ran across, or noted problems such as this, in which controlling loading/video using the NetConnection and Netsrream classes... I've done a few projects with H.264 videos, but they weren't in the format MP4, MOV (I guess that there should be no difference in reading, however).

    One last thought - what is the data rate you have compressed your videos? If it is really high (2 megabits per second), maybe it is too much tax on your system (and is too high for the general display broadband, anyway).

  • iMac - how to get rid of the intrusive audio file

    For weeks, an intruder audio file which seems to be mostly advertising for various products starts randomly. It does not seem to relate to any particular software program, as it can start at any time. I ran Malwarebytes and Sophos, and found nothing. He leads me in the wall! Anyone has a solution, please. iMac 2007 running OS 10.10.5

    Hi, David.

    Please visit Apple support communities.

    I understand that you receive random ads using Safari.  I also see that you also ran Malwarebytes with this program does is not a solution.  The next step would be to go through the troubleshooting steps in the article below.

    Stop advertising and pop-up advertising windows in Safari

    See you soon

  • How to reveal the invisible audio files hidden

    When I download the audio cd on itunes and do a reading list, I am trying to burn the playlist to cd, but when I try to transfer to a folder on the desktop, I get a message that the audio files are invisible, nobody knows how to solve this problem? Can you help me please? Thanks SteveSullie

    http://www.Bresink.com/OSX/TinkerToolSys4.html

  • Windows medial 11 in Win XP will not play the .dvr-ms files

    I can't get the .dvr-ms files to play in Win Media 11, Win XP.
    Thank you

    Thank you for your response.   I had not tried to play before .dvr-ms files on the computer with Win XP.
    Before I got your answer, I uninstall Media player 11 - he returned to Media Player 9.  It would not read these files.
    I then reinstalled Media Player 11 and it worked.  Don't know what I did, but maybe just reinstall it solved the problem.
    It works now.
    Thank you
    Jim

  • Need to copy audio files from a USB on the computer for transcription - how to sync and keep the original audio files on USB?

    Have the transcript very important things to do; usually get audio on the discs, but this time I had rec on a USB - has never worked with USB before, and I don't know how I copy the files on the USB key to an audio file in my computer through Windows Media.  Really of what I can do something wrong and erase/delete files on the USB key if I don't know what I'm doing.  I guess I "sync", but could someone please give me step by step on how it's done with Vista?  As you can summize, I'm "technically not contested."

    Thank you.

    Hi Tech Mom,

    If you copy and paste a file or folder, it does not get deleted in the source location. It gets deleted in the source location when you cut and paste the file or folder. The article below explains how to copy and paste a file or folder.

    Copy a file or folder
    http://Windows.Microsoft.com/en-us/Windows-Vista/copy-a-file-or-folder

    See question 5th from the link below.
    http://Windows.Microsoft.com/en-us/Windows-Vista/Windows-Media-Player-sync-frequently-asked-questions

    I hope this helps.

    Bindu S - Microsoft Support

    [If this post can help solve your problem, please click the 'Mark as answer' or 'Useful' at the top of this message.] [Marking a post as answer, or relatively useful, you help others find the answer more quickly.]

  • Create the new audio file of much larger file

    I have a file audio large .wav for storytelling with multiple takes on it (it was easier to do it this way since we were borrowing a studio). How I cut out different plugs, rename them and then save them as audio files in the organizer of items separated? So far, I can cut and duplicate, but not save as a new file (smaller). It shows than the original file, simply duplicated.

    garrettw

    What version of Premiere Elements and on what operating system works - it?

    For now, thinking first elements 13/13.1 on Windows 7, 8 or 8.1 64bits

    In principle, one would expect that you can selectively export segments of your audio by using Publish + share/computer/Audio with preset for Windows Waveform.

    Two conditions to make

    1. in the edit box, you set the work area bar grabbing extend over the segment for export.

    and

    2. in the publication + share/computer/Audio, you have a check mark next to the option "Share work area Bar only.

    Please review, study and provide more details.

    Thank you.

    RTA

  • First playing the original sound file or the CFA?

    This question is super basic, but I can't find a clear answer in one of my Google searches.

    I moved all my sound files to an SSD, which can power the data very quickly. I have my cache of media, as well as all CFA creation files created on a separate drive, WD blue. When I put an audio file in my calendar and then listen to it, are handed over data to the me of the audio file of origin on the SSD, or I'm diffuculty file CFA which is on my drive WD Blue, in the media cache?

    The reason I ask, is that I'm putting my assets on different drives, for example, the images on a disc, music on another, hide media on another drive, etc. in order to avoid bottlenecks. However, if the audio comes from the media cache, and file original, then when I change my SSD done anything and all the work is placed on the drive WD Blue, which is something I wanted to avoid if possible...

    Thanks in advance for any clarification that may be provided on this issue...

    Premiere Pro uses the 32 bit floating file point CFA.

    Please keep in mind that it is inconsistent with everything. Just at the moment when he must.

Maybe you are looking for

  • Report

    How would I be able to post a question if I can get level 2

  • Back to the factory settings on my Portege M200

    Hello!Can someone help me with my Portege m 200 back to factory settings without using the recovery CD/DVDs. My problem is that the m200 have only an extern CD/DVD device./Jens

  • DVD RW, correct to use format, the DVD - RW format for daily use.

    Thanks in advance MIKE0526 I read there is a 'Master format' and a 'Live file system format' in live format, there seem to be 5 different types of versions? What kind of format is best to use on my (drive D) DVD - RW disc for daily use. I have a Vist

  • Strange behavior when you try to use drag events

    This is the most likley I'm missing something obvious, but it's very confusing. I'm prototyping a simple application in Flash Pro 5 (have one already on the app store and the other submitted) and the design would work well with an application on a bl

  • Windows 8 Media Center Pack received not e-mail with key

    I bought Windows 8 Pro Upgrade today and installed windows 8 pro I see that Windows 8 Media Center Pack is free and gave my email for the product key Its been more than 5 hours now and no email has been sent and I see that a lot of people have had th