×

Discussion Board

Results 1 to 6 of 6
  1. #1
    Registered User
    Join Date
    Jun 2009
    Posts
    39

    invalid encoding

    Hi,

    I have a Nokia 3720c. I want recording audio. When I call createPlayer("capture://audio"). It work's fine. But when I call createPlayer("capture://audio?encoding=audio/amr") it rise an 'invalid encoding'-Exception. But the encoding I get from System.getProperty("audio.encodings").

    Anone an idea?

    thanks!
    Herbutinde
    Last edited by Herbutinde; 2010-05-17 at 09:34.

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

    Re: invalid encoding

    Hello Herbutinde,

    does it help if you use

    Manager.createPlayer("capture://audio?encoding=amr");

    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
    Jun 2009
    Posts
    39

    Re: invalid encoding

    No, that's the same effect =(

  4. #4
    Registered User
    Join Date
    Mar 2006
    Posts
    32

    Re: invalid encoding

    Hi,

    On many devices the encoding specified as supported doesn't work properly. Try using other encodings returned by System.getProperty("audio.encodings") because implementations may incorrectly report what is supported.

    Regards,
    Aditya

  5. #5
    Registered User
    Join Date
    Jun 2009
    Posts
    39

    Re: invalid encoding

    That's the once encoding. There is no other.

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

    Re: invalid encoding

    Try using simply

    Manager.createPlayer("capture://audio");

    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]

Similar Threads

  1. Error in packaging process :(
    By a-eqla3 in forum Carbide.c++ IDE and plug-ins (Closed)
    Replies: 1
    Last Post: 2008-07-24, 20:33

Posting Permissions

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