×

Discussion Board

Results 1 to 10 of 10
  1. #1
    Registered User
    Join Date
    May 2009
    Posts
    3

    Question Playing mp3 audio with S60 5th Editon SDK

    Hi,

    I am currently trying to play an mp3 with a J2ME midlet using the S60 5th Edition SDK version 1.0. In emulation it crashes:

    javax.microedition.media.MediaException: Could not create player.
    at
    com.nokia.microedition.media.ManagerImpl.createInternalPlayer(ManagerImpl.java:486)
    at com.nokia.microedition.media.ManagerImpl.createPlayer(ManagerImpl.java:534)
    at javax.microedition.media.Manager.createPlayer(Manager.java:74)[/I]

    When I try the jar on the 5800 device there is no sound.

    I was able to play this same code on the S60 3rd Edition SDK and the N95 device successfully. The mp3 file plays.

    Is there currently an issue playing mp3 with the 5th Edition SDK? Perhaps, there is a configuration parameter I need to set?

    Regards,

    Eric

  2. #2
    Nokia Developer Expert
    Join Date
    Aug 2007
    Posts
    1,595

    Re: Playing mp3 audio with S60 5th Editon SDK

    Hello woody99,

    When I try the jar on the 5800 device there is no sound.
    Are you testing with a SIM card on the device? Does it make difference if the SIM is there?

    Regards,
    r2j7
    [URL="http://library.forum.nokia.com/java"][B] >>> Java Developer's Library <<<[/B][/URL]
    [URL="https://www.developer.nokia.com/Resources/Support/Technical_support.xhtml"] [B]>>> Technical Support for Java ME development <<<[/B][/URL]
    [URL="https://publish.ovi.com/info/"][B]>>> Nokia Publish: reach millions of Nokia users worldwide through Nokia Store <<<[/B][/URL]

  3. #3
    Registered User
    Join Date
    May 2009
    Posts
    3

    Smile Re: Playing mp3 audio with S60 5th Editon SDK

    Thanks r2j7,

    It works after I put a SIM card in the device. I never would have thought of that!

    woody99

  4. #4
    Nokia Developer Expert
    Join Date
    Aug 2007
    Posts
    1,595

    Re: Playing mp3 audio with S60 5th Editon SDK

    Hello woody99,

    yes, there seems to be a MMAPI related limitation with certain firmwares of Nokia 5800 XpressMusic alright.

    One more related question: could you please deliver the firmware version (i.e. entering *#0000# on Active Standby view) of your device so we can track this issue?

    Regards,
    r2j7
    [URL="http://library.forum.nokia.com/java"][B] >>> Java Developer's Library <<<[/B][/URL]
    [URL="https://www.developer.nokia.com/Resources/Support/Technical_support.xhtml"] [B]>>> Technical Support for Java ME development <<<[/B][/URL]
    [URL="https://publish.ovi.com/info/"][B]>>> Nokia Publish: reach millions of Nokia users worldwide through Nokia Store <<<[/B][/URL]

  5. #5
    Registered User
    Join Date
    Mar 2009
    Posts
    6

    Re: Playing mp3 audio with S60 5th Editon SDK

    I've exacly the same problem.

    My device: 5800 XM: 30.0.011

    Code:
    FileConnection fc = (FileConnection) Connector.open("SoundFile.mp3", Connector.READ);
            InputStream in = fc.openInputStream();
            Player player = Manager.createPlayer(in, "audio/mpeg");
            player.realize();
            vc = (VolumeControl) player.getControl("VolumeControl");
            if (vc != null) {
                vc.setLevel(100);
            }
    
            player.prefetch();
            player.start();
    On the Emulator from the S60 5th Edition SDK this code crashs and when i try this on my device there's no sound.

    Regards,
    Julian

  6. #6
    Registered User
    Join Date
    Mar 2009
    Posts
    6

    Re: Playing mp3 audio with S60 5th Editon SDK

    I got it!

    When I turned on the audio warnings then it works :-)

  7. #7
    Nokia Developer Champion
    Join Date
    Apr 2007
    Posts
    2,708

    Re: Playing mp3 audio with S60 5th Editon SDK

    what do you mean with turning on audio warnings ?

  8. #8
    Registered User
    Join Date
    Mar 2009
    Posts
    6

    Re: Playing mp3 audio with S60 5th Editon SDK

    1. Go to "Settings"
    2. Select "Profiles"
    3. Select "General" or the profile you are using
    4. Select "Personalise"
    5. Set "Warning Tones" to "On"

    Sorry, I mean "Warning Tones" :-)
    This just works on a real device!!!

  9. #9
    Registered User
    Join Date
    Feb 2010
    Posts
    2

    Question Re: Playing mp3 audio with S60 5th Editon SDK

    my problem is that, when I transfer MP3 files to my phone(nokia 5800),the initial 1 or 2 album will work properly( containing abt 20 songs) after that ,if i try to put more files n go n look for it in the file manager ,u can see some corrupted files. but u can play it like the above....i formatted my mini SD so many times..bt its the same. when the corrupted file are in ur phone , u can even delete it....i dont knw how to solve this problem....plz help!!!!

  10. #10
    Nokia Developer Champion
    Join Date
    Apr 2007
    Posts
    2,708

    Re: Playing mp3 audio with S60 5th Editon SDK

    sorry thats no specific j2me proble, so you are in the wrong forum completely...

Similar Threads

  1. A silly question
    By delphilord in forum Symbian Tools & SDKs
    Replies: 5
    Last Post: 2009-02-26, 13:13
  2. S60 5th Ed. SDK v0.9 and Carbide.vs 3.01 Issue
    By Igor Pchelko in forum Tools and SDK Feedback (Closed)
    Replies: 1
    Last Post: 2009-01-06, 19:47
  3. S60 5th Ed. SDK v0.9 and Carbide.vs 3.01 Issue
    By Igor Pchelko in forum Symbian Tools & SDKs
    Replies: 6
    Last Post: 2009-01-04, 17:50
  4. S60 SDK, 3rd FP2 works well, 5th not.
    By sblantipodi in forum Mobile Java Tools & SDKs
    Replies: 1
    Last Post: 2008-12-28, 20:19
  5. S60 5th Edition SDK v0.9 App Trk available?
    By Martin_Malek in forum Symbian Tools & SDKs
    Replies: 3
    Last Post: 2008-11-05, 10:28

Posting Permissions

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