×

Discussion Board

Results 1 to 3 of 3
  1. #1
    Regular Contributor
    Join Date
    Oct 2006
    Posts
    60

    Question Nokia 2610 unable to run audio files

    Hello Experts!

    I am having issue playing an audio file (packaged with jar) on Nokia 2610. I can run the same app normally on my Nokia E51 and other sets as well.

    I tried with wav file and got the error:

    invalidcontent type audio/x-wav

    then i tried an mp3 file and got the error:

    invalidcontent type audio/mpeg

    error is thrown while executing following lines of code:

    Code:
    player = Manager.createPlayer( getClass().getResourceAsStream(file2), "audio/mpeg")
    Same application works on other nokia phones then why not on this?

    Please advise me, i am in a deep trouble.

    Thanks,
    Alam Sher

  2. #2
    Nokia Developer Moderator
    Join Date
    Oct 2007
    Location
    Deva, Romania
    Posts
    3,471

    Re: Nokia 2610 unable to run audio files

    The Nokia 2610 only supports AMR and MIDI format for audio.

  3. #3
    Super Contributor
    Join Date
    Jun 2003
    Location
    Cheshire, UK
    Posts
    7,395

    Re: Nokia 2610 unable to run audio files

    You can ask the device what content-types it will support.

    Code:
    String[] mimeTypes = Manager.getSupportedContentTypes(null);
    When you create a Player, you must use one of the types from that list.

    Be aware that, just because a device supports a particular type, does not mean it will support all forms of that type. For example, a device might play WAVs, but might only play 8kHz, mono, 8bit. It might play MIDI, but only MIDI-0, not MIDI-1. Some experimentation is needed.

    You cannot necessarily play from Java all the formats that the device's media player supports.

Similar Threads

  1. Infra-red capability
    By Symbian_Challenge_0412 in forum General Development Questions
    Replies: 1
    Last Post: 2005-08-16, 18:24
  2. Series 60 Concept Emulator (SDK Beta 0.2 Linux) not working
    By mattbee in forum Mobile Java Tools & SDKs
    Replies: 1
    Last Post: 2003-06-10, 11:43

Posting Permissions

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