Discussion Board

Results 1 to 2 of 2
  1. #1
    Registered User
    Join Date
    Feb 2007

    mmapi prefetch problem

    Hi, I'm trying to play an audo file with j2me and mmapi, but it crashes and I don't know why. This is my code:

    try {
                servidor.append("Archivo cargado\n");
                m_player = Manager.createPlayer(is, "audio/mp3");          
                // get volume control for player and set volume to max
                vc = (VolumeControl) m_player.getControl("VolumeControl");
                if(vc != null) {
            } catch(Exception e) {
            try {
            } catch (MediaException ex) {
            try {
                servidor.append("estado actual:"+m_player.getState()+"\n");
            } catch (MediaException ex) {
    I've tried with midi and mp3 files, but doesn't work, it crashes in m_player.prefetch(), and I get the next error:

    "prefetch error: -5"

    but I can't find what kind of error is, and how to fix it.

    The file is in the sd file, but I've tried with files in local memory too.

    Thanks for your help

    Edit: my phone is a nokia n73

  2. #2
    Registered User
    Join Date
    Feb 2007

    Re: mmapi prefetch problem

    hi ouendan. I have had that problem, i think...i don't renember. But check the size of the file, maybe it is to big to be loaded in memory (task that the player do)...or you can try to audio/mpeg instaed of audio/mp3...
    i hope that's work.

    Bueno eso es todo, solamente veo que vos tambien sos de latino america, así que no puedo evitar pegarte un saludo!!. (La respuesta fue en ingles para que a todos sirva, bah si sirve para algo..jejej) Nos vemos!.


Similar Threads

  1. MMAPI and jsr75 in one midlet = fatal problem
    By dusanbaranec in forum Mobile Java General
    Replies: 8
    Last Post: 2006-06-07, 07:18
  2. Midi file playing problem
    By haristeguh in forum Mobile Java Media (Graphics & Sounds)
    Replies: 0
    Last Post: 2006-04-06, 01:02
  3. MMAPI Problem
    By chriditz in forum Mobile Java General
    Replies: 1
    Last Post: 2004-08-02, 05:58
  4. mmapi 3660 memory problem
    By Leicester22 in forum Mobile Java Media (Graphics & Sounds)
    Replies: 0
    Last Post: 2004-07-30, 17:01
  5. S90 MIDP SDK 1.0 Beta MMAPI Problem
    By kfalck in forum Mobile Java Tools & SDKs
    Replies: 0
    Last Post: 2004-06-21, 19:44

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts