Discussion Board

Results 1 to 4 of 4
  1. #1
    Registered User
    Join Date
    Apr 2010

    Selecting Output Device for Audio Playback


    This is my problem: I'm using the Mobile Media API (JSR 135) to open an AMR audio file to play and all is working well, but I need the phone to play the file not using the default stereo speakers (normaly used for music and media) but using the speaker normaly used for phone calls. The reason is that I need the audio file to be heard only by the phone's owner and nobody else.
    Is there a way to select the default output device that the phone will use to play audio files or is there a workaround to achieve this goal?

    If there's no way to do this with the standard J2ME api's, is it possible to obtain the result with Nokia SDK? Do I need to use a different programming language?

    Thanks in advice for replies!

    I'm currently developing for Nokia 5800 (S60 5th edition), but in the future I'd like to port the same application on Series 40 phones as well.

  2. #2
    Super Contributor
    Join Date
    Apr 2007

    Re: Selecting Output Device for Audio Playback

    I never heard of that option, to be honest I wouldn't expect it to be possible...
    Maybe with the c++/Symbian combination ?

  3. #3
    Nokia Developer Expert
    Join Date
    Aug 2007

    Re: Selecting Output Device for Audio Playback

    Hello filo.ferro,

    on Java Runtime 2.1 for Symbian, there is AudioOutputControl extension on Nokia UI API 1.4 for controlling which audio output device, for example the device loudspeaker or earpiece, is used to play back audio.

    The Beta release of JRT 2.1 was released last week on Nokia Beta Labs: http://betalabs.nokia.com/apps/java-...bian/more_info

    The Beta release of JRT 2.1 is available for selected S60 5th Edition devices. It works with the following devices and software versions:

    Nokia 5800 XpressMusic, software version 40.x.xxx and newer
    Nokia N97, 12.x.xxx and newer
    Nokia N97 mini, 10.x.xxx and newer

    Download and installation guidelines: https://betalabs.nokia.com/apps/java...d_installation

    Developer guidelines and material available on Forum Nokia Java Developer's Library:

    Controlling audio output

    Audio extensions

    Javadocs on Nokia UI API

    Example MIDlet on Forum Nokia Java Developer's Library

    [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]

  4. #4
    Registered User
    Join Date
    Apr 2010

    Re: Selecting Output Device for Audio Playback

    Thank you r2j7 for your detailed reply, but I'd like to deploy the application for a wide range of phones (even for phones with Series 40 OS) and so I think this couldn't be a way to do it..

    Maybe I can do the same with the Symbian SDK, but I'd like to be sure of this before starting to learn a new development platform.. ;-)
    Can you tell me something about it or I have to post in the specific forum?

    Best regards,

Similar Threads

  1. Replies: 4
    Last Post: 2007-09-10, 10:18
  2. Replies: 1
    Last Post: 2006-08-18, 10:22
  3. Audio streaming V/S audio output playback
    By asheeshv in forum Symbian
    Replies: 0
    Last Post: 2005-01-15, 11:44
  4. Receiving RDebug output from Series60 device
    By Zaxxon in forum Symbian Tools & SDKs
    Replies: 1
    Last Post: 2003-11-29, 17:29
  5. String output to rs232 device
    By grahamgoodie in forum Mobile Java General
    Replies: 0
    Last Post: 2002-09-04, 14:16

Posting Permissions

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