| Reply | « Previous Thread | Next Thread » |
|
Hi Friends,
I m a newbie in j2me n wants to record a video on handset with my java application. and laso i want to send it to server via OTA. Please if anybody knows help me out. Thanx, Giz |
|
http://www.club-java.com/TastePhone/MIDP.jsp
You can see in this list if your mobile supports the video recording, this is the first thing to do... |
|
Join Date: Dec 2005
Posts: 1,696
Location: Europe/Poland/Warsaw
Offline
Super Contributor
|
|
hi Giz,
check devices matrix capabilities for audio/video: http://forum.nokia.com/main/resource...es/audiovideo/ (not all devices supports video recording in J2me when speaking about Nokias recording), download samples from links on that page, regards, Peter |
| peterblazejewicz |
| View Public Profile |
| Find all posts by peterblazejewicz |
|
Join Date: Jul 2006
Posts: 4
Location: Kommetjie, Cape Town, South Africa
Offline
Registered User
|
|
Unfortunately - a large number of the files give a "file not found" error when one tries to access them.
Do you know of a simple way to automate posting of a video recording either to a web site (via ftp) or triggering an email. I need to get a client who is totally un technical to make a video recording and then to send it back to me. I am concerned that the files may be too large to email or MMS. Suggestions? Regards Alex |
|
Thanx Peter n isa now its working properly from wtk but when i m trying to use this code in my application where I m using ant for compilation, n added jsr135 jar to lib, I m getting a problem. Problem is that, I m getting Recordcontrol obj null... I m attaching a code pices here ... if anybody has idea plz help me..I m in trouble.
. . . public void startCamera() { try { m_videoPlayer = Manager.createPlayer("capture://video"); m_videoPlayer.realize(); m_videoControl = (VideoControl) m_videoPlayer.getControl("VideoControl"); if( m_videoControl != null ) { captureForm.append((Item)m_videoControl.initDisplayMode(m_videoControl.USE_GUI_PRIMITIVE, null)); } m_videoPlayer.start(); } catch( MediaException me ) { prots.setText( "startCamera() exception " + me ); } catch( java.io.IOException i ) { prots.setText( "startCamera() exception " + i ); } } public void stopCamera() { try { if( m_recordControl != null && m_outputStream != null && m_fconn != null ) { m_recordControl.stopRecord(); m_recordControl.commit(); m_recordControl = null; m_outputStream.flush(); m_outputStream.close(); m_outputStream = null; m_fconn.close(); m_fconn = null; } if(captureThread.isAlive()) { captureThread.join(); captureThread = null; } } catch (Exception me) { prots.setText( "Stop camera exception " + me ); } } public void capture() { try { m_fconn = (FileConnection)Connector.open(fileUrl, Connector.READ_WRITE); if(!m_fconn.exists() ) { m_fconn.create(); } else { m_fconn.delete(); m_fconn.create(); } m_outputStream = m_fconn.openOutputStream(); } catch(Exception e) { prots.setText("Couldn't open file!" + e ); m_outputStream = null; m_fconn = null; return; } try { if ( m_videoPlayer != null ) { m_recordControl = (RecordControl) m_videoPlayer.getControl("RecordControl"); System.out.println("You RecordControler "+m_recordControl); m_recordControl.setRecordStream( m_outputStream ); m_videoPlayer.start(); m_recordControl.startRecord(); Thread.currentThread().sleep(MAXLENGTHOFVIDEO); m_recordControl.stopRecord(); m_recordControl.commit(); m_recordControl = null; m_outputStream.flush(); m_outputStream.close(); m_outputStream = null; m_fconn.close(); m_fconn = null; } } catch(Exception e) { prots.setText("Couldn't player!" + e.getMessage()); try { Thread.currentThread().sleep(1000); } catch(Exception d) {} } } . . . Thanx Giz |
| Reply | « Previous Thread | Next Thread » |
| Thread Tools | Search this Thread |
|---|---|
| Thread | Thread Starter | Forum | Replies | Last Post |
|---|---|---|---|---|
| Play video on Canvas with N 6600 doesnt work. Please help!!! | Robert111 | Mobile Java Media (Graphics & Sounds) | 2 | 2006-02-22 09:45 |
| How to set the HTTP Proxy port while pushing OTA using Nokia 7.0 OTA specifications | talluritrk | OMA DM/DS/CP | 0 | 2004-09-30 08:08 |
| Video questions | satbox | General Messaging | 1 | 2002-11-26 18:50 |
| OTA sms for SyncML | toshkin | General Messaging | 3 | 2002-07-17 10:48 |
| OTA sms for SyncML | toshkin | General Messaging | 0 | 2002-07-11 15:37 |