×

Discussion Board

Results 1 to 2 of 2
  1. #1
    Registered User
    Join Date
    Apr 2008
    Posts
    2

    Audio not playing in Nokia C5

    Hi,

    I'm trying to play an audio file in Nokia C5 using the J2ME Mobile Media API. The audio file is embedded in the jar file of the midlet. I have enabled warning sounds for the profile I'm using. In Nokia E52 the midlet displays "playing com.symbian.j2me.midp.runtimeV2.NativeInputStream@f044eaeb" and the audio plays without problems. In Nokia C5 the midlet displays "playing com.ibm.oti.vm.ZipStream@17671767" and I get no sound.

    What could be the reason for this lack of audio in C5? Is there some new "known issue" like enable warning sounds?

    - Juha

    Code:
    package audiotest;
    
    import java.io.InputStream;
    import javax.microedition.lcdui.Display;
    import javax.microedition.lcdui.TextBox;
    import javax.microedition.media.Manager;
    import javax.microedition.media.Player;
    import javax.microedition.midlet.*;
    
    public class TestMidlet extends MIDlet {
        public void startApp() {
            TextBox tb = new TextBox("Message", "", 1000, 0);
            Display.getDisplay(this).setCurrent(tb);
            InputStream stream = getClass().getResourceAsStream("test.aac");
            if (stream == null) {
                tb.setString("null stream");
                return;
            }
            try {
                Player p = Manager.createPlayer(stream, "audio/aac");
                p.prefetch();
                p.realize();
                p.start();
                tb.setString("playing " + stream);
            } catch (Exception e) {
                tb.setString(e.toString());
            }
        }
        public void pauseApp() {
        }
        public void destroyApp(boolean unconditional) {
        }
    }

  2. #2
    Registered User
    Join Date
    Dec 2008
    Location
    Kazakhstan, Almaty
    Posts
    17

    Re: Audio not playing in Nokia C5

    Silence mode? (Vib. mode)
    :)

Similar Threads

  1. Not compatible with Nokia C5
    By gunajit9 in forum Symbian
    Replies: 1
    Last Post: 2010-03-16, 17:37
  2. Audio not playing in Device
    By bidyut84 in forum Mobile Java Media (Graphics & Sounds)
    Replies: 4
    Last Post: 2010-02-23, 05:16
  3. audio not playing.....
    By chandra1234 in forum Symbian
    Replies: 7
    Last Post: 2009-03-27, 07:31
  4. Nokia phones are not really ready for Bluetooth audio playing
    By cgraham1 in forum General Development Questions
    Replies: 0
    Last Post: 2006-01-11, 03:21
  5. audio not playing.. please help!
    By tequilasunrise in forum Mobile Java General
    Replies: 1
    Last Post: 2005-01-03, 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
  •  
×