Hi,
Was u checked out that after uploading the data to server that the uploaded video is not proper.
Also u can try RecordControl.setRecordLocation(url); no need of data uploader class. can try in this way too..
private void showCamera()
{
try {
player = Manager.createPlayer("capture://video");
player.realize();
videoControl = (VideoControl)player.getControl("VideoControl");
int width = getWidth();
int height = getHeight();
videoControl.initDisplayMode(VideoControl.USE_DIRECT_VIDEO, this);
try {
videoControl.setDisplayLocation(2, 2);
videoControl.setDisplaySize(width - 4, height - 4);
} catch (MediaException me) {}
videoControl.setVisible(true);
} catch (IOException ioe) {} catch (MediaException me) {}
}
private void RecordVideo()
{
try{
control = (RecordControl)player.getControl("RecordControl");
control.setRecordLocation(URL);// eg:
http://abc.com/..
player.start();
repaint();
control.startRecord();
}
catch (Exception e)
{
Alert alert = new Alert("Error
Record",e.getMessage),null,AlertType.ERROR);
Display.getDisplay(mid).setCurrent(alert);
}
}
private void StopVideoRecording()
{
try{
control.stopRecord();
control.commit();
player.stop();
player.deallocate();
player.close();
repaint();
}
catch (Exception e)
{
Alert alert = new Alert("Stop",e+"",null,AlertType.ERROR);
Display.getDisplay(mid).setCurrent(alert);
}
}
pls check and reply
thanks,
jitu_goldie..