×

Discussion Board

Results 1 to 7 of 7

Hybrid View

  1. #1
    Registered User
    Join Date
    Apr 2008
    Posts
    18

    Slow response in N78 & N80, after capturing video.

    Hi all,

    I want to do video capturing.
    I have done it as follows:
    staring the recorder, by setting the record location of the VideoControl to the handset memory. when the user stops recording i am doing :
    recordControl.stopRecord();
    recordControl.commit();
    videoPlayer.stop();
    videoPlayer.close();

    & then i am displaying a list of option to the user to play it and so..

    my code is error free & its working in E51 & some others properly but same code in Nokia N78 & Nokia N80, when i click on "Stop" button however the video recording stops & it stays for a long time in that still screen.
    initially i thought its not listening to the stop command. but its not the case, once i recorded small(say 5second)file & when i clicked stop, i waited for a long time for 30 - 50 sec, then the list screen displayed. so according to this, i think its taking long time to display that screen. can nybody tell me anything i can do so that the response will get better.
    thanks in advance,
    chetan.

  2. #2
    Super Contributor
    Join Date
    Apr 2003
    Location
    USA, CA
    Posts
    7,191

    Re: Slow response in N78 & N80, after capturing video.

    I cannot remember any known issues.

    I would suggest you to debug the code a little more or to post relevant pieces of your code so others could contribute.

    Hartti

  3. #3
    Registered User
    Join Date
    Apr 2008
    Posts
    18

    Re: Slow response in N78 & N80, after capturing video.

    thanks for the reply hartti,
    here is some part of the code which may help others to solve the problem:

    /// for recoording video:
    private void captureVideo() {
    try {
    videoPlayer = Manager.createPlayer("capture://video");
    videoPlayer.realize();


    videoControl = (VideoControl) videoPlayer.getControl("VideoControl");
    Canvas canvas = new VideoCanvas(Meomyo.mMidlet, videoControl);
    canvas.addCommand(cmdCaptureStop);
    canvas.setCommandListener(this);
    display.setCurrent(canvas);

    recordControl = (RecordControl) videoPlayer.getControl("javax.microedition.media.control.RecordControl");
    if (recordControl == null) {
    throw new Exception("No RecordControl available");
    }

    FileConnection filecon = (FileConnection) Connector.open(mainVideoDirectoryPath + fileName);
    if (!filecon.exists()) {
    filecon.create();
    }

    recordControl.setRecordLocation(mainVideoDirectoryPath + fileName);
    videoPlayer.start();
    recordControl.startRecord();

    } catch (Exception e) {
    }

    }

    // in commandAction():

    if (cmd == cmdCaptureStop) {
    try {
    recordControl.stopRecord();
    recordControl.commit();
    videoPlayer.stop();
    videoPlayer.close();
    showCaptureDoneForm();


    } catch (Exception e) {
    }


    where:
    * VideoCanvas is a Canvas used to display the video
    * mainVideoDirectoryPath is either phone-video folder path or memory card-video folder path
    * showCaptureDoneForm() is a method to display the list of options.

    As i have already told the code is workin fine n only in nokia N80 & N78 its so late in response(that is ths list of options is displayed very late).

    thanks once again,
    chetan

  4. #4
    Super Contributor
    Join Date
    Apr 2003
    Location
    USA, CA
    Posts
    7,191

    Re: Slow response in N78 & N80, after capturing video.

    During a quick glance I did not see anything wrong with your code...hmmm. am I missing something?

    Does the amount of time before showing the options vary based on the recording length?
    Without the recording, does the options show immediately?

    Hartti

  5. #5
    Registered User
    Join Date
    Apr 2008
    Posts
    18

    Re: Slow response in N78 & N80, after capturing video.

    s hartti, it is varying with the duration of the clip that i capture, longer the clip longer the delay. but i couldn't test "without recording" thing b'cas even i stop imediately, some clip would have captured & writen, however at that time it shows the option menu quicker.

    more details:
    the location given is memory card,(1GB) & i don't think the phone may go slow because of that as most of the memory is free & also other operations(other than my app) go normally. & i also tried giving phone memory location , but no changes.

    chetan.

  6. #6
    Super Contributor
    Join Date
    Apr 2003
    Location
    USA, CA
    Posts
    7,191

    Re: Slow response in N78 & N80, after capturing video.

    This could be related then
    http://wiki.forum.nokia.com/index.ph...dition_devices

    Or not, as you mention that using phone memory does not change a thing.
    Hmmm...

    Hartti
    Last edited by hartti; 2008-08-29 at 18:55. Reason: completed the answer

Similar Threads

  1. Video Capturing and Recording
    By vin7805 in forum Mobile Java General
    Replies: 5
    Last Post: 2008-03-19, 11:23
  2. Help required for video capturing
    By arunpirku in forum Symbian Media (Closed)
    Replies: 3
    Last Post: 2008-02-04, 22:22
  3. nokia 7210 modem via IR doesn't work !
    By oussamaaiadi in forum PC Suite API and PC Connectivity SDK
    Replies: 1
    Last Post: 2003-03-06, 10:46

Posting Permissions

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