×

Discussion Board

Results 1 to 4 of 4
  1. #1
    Registered User
    Join Date
    Mar 2005
    Posts
    3

    Question capture://audio nokia 6600

    I have emulated an audio capture midlet in the nokia developer suite for J2ME and i received a MediaException.
    code
    p = Manager.createPlayer("capture://audio);

    the specification for series 60 MMAPI supports audio capture. I want to know if this is so on the real nokia 6600 device.

  2. #2
    Registered User
    Join Date
    Nov 2004
    Posts
    8
    The following works well for me:

    try {

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

    capturePlayer.realize( );

    recordControl = (RecordControl)capturePlayer.getControl( "RecordControl" );

    outputStream = new ByteArrayOutputStream( );
    recordControl.setRecordStream( outputStream );
    int sizeLimit = recordControl.setRecordSizeLimit( maxSecondsToRecord * 8000 );

    }
    catch ( IOException ioe ) {
    _debug( "(i.) IOException: " + ioe );
    }
    catch ( MediaException me ) {
    _debug( "(ii.) MediaException: " + me );
    }

  3. #3
    Registered User
    Join Date
    Nov 2004
    Posts
    33
    I have the above problem on emulator too,
    but it works well in real 6600,
    so u may try to put your programme on real phone to test.

  4. #4
    Registered User
    Join Date
    Nov 2004
    Posts
    8
    Oh yeah, good point yuava. I seem to recall a note somewhere in the nokia or symbian documents that stated that the emulators do *not* support recording but that the actual phones do.

    I missed that distinction (emulator vs. actual phone) in the original poster's question.

Posting Permissions

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