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.
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
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
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
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.
Re: Slow response in N78 & N80, after capturing video.
This could be related then
[url]http://wiki.forum.nokia.com/index.php/KIJ000422_-_Writing_a_file_on_a_memory_card_is_slow_on_Nokia_9300i_and_S60_3rd_Edition_devices[/url]
Or not, as you mention that using phone memory does not change a thing.
Hmmm...
Hartti
Re: Slow response in N78 & N80, after capturing video.
hi all,
i still dint get the solution for this,
i used form instead of Canvas,
i did stop,close n commit after i displayed the option screen..
n so on...
but no use,
please anybody give me some more suggestions so that i can try it on..
thanks,
chetan.