×

Discussion Board

Results 1 to 1 of 1

Hybrid View

  1. #1
    Registered User
    Join Date
    Jul 2008
    Posts
    1

    Cool Video recording length on 6131 & 6212

    I'm developing a video recording program on 6131 & 6212 using Java ME with JSR135 MMAPI support. I'm trying to recording video and save it to SD card.

    Here is how I did:
    Player videoPlayer = Manager.createPlayer("capture://video");
    videoPlayer.realize();

    RecordControl videoRecordControl = (RecordControl) videoPlayer.getControl("RecordControl");

    String file = "file:///e:/" + String.valueOf(System.currentTimeMillis()) + ".3gp";
    FileConnection fcVideo = (FileConnection) Connector.open(file);
    if (!fcVideo.exists()) {
    fcVideo.create();
    }
    videoRecordControl.setRecordStream(fcVideo.openOutputStream());

    int recordSize = Integer.MAX_VALUE - 1;
    recordSize = videoRecordControl.setRecordSizeLimit(recordSize);

    videoRecordControl.startRecord();
    videoPlayer.start();

    // Do something else and wait for stop command

    videoPlayer.stop();
    videoRecordControl.commit();
    videoPlayer.close();
    videoRecordControl = null;
    fcVideo.close();
    fcVideo = null;

    When recording video using Player and RecordControl objects, there seems to be some file size or time length limit for recording video. It happens even after I set the record size of RecordControl using setRecordSize(Integer.MAX_VALUE - 1).

    Can anybody give me some advise on this?
    Or where can I find more information about video recording using MMAPI?

    I downloaded 'Mobile Media API Support In Nokia Devices' resource from:
    http://www.forum.nokia.com/info/sw.n..._0_en.pdf.html
    http://www.forum.nokia.com/info/sw.n..._0_en.xls.html

    But there are no information for these two phones (6131 & 6212) and no information about record size limit.

    Thanks for any idea in advance!
    Last edited by zlion; 2009-02-03 at 01:51. Reason: Add some source code

Similar Threads

  1. Replies: 2
    Last Post: 2010-01-16, 02:09

Posting Permissions

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