You Are Here:

Community: Developer Discussion Boards

#1 Old Recoding video n transfering it via OTA - 2006-07-18, 09:27

Join Date: Mar 2006
Posts: 14
giz155's Avatar
giz155
Offline
Registered User
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
Reply With Quote

#2 Old Re: Recoding video n transfering it via OTA - 2006-07-18, 10:34

Join Date: Jul 2006
Posts: 41
isa550
Offline
Registered User
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...
Reply With Quote

#3 Old Re: Recoding video n transfering it via OTA - 2006-07-18, 13:04

Join Date: Dec 2005
Posts: 1,696
Location: Europe/Poland/Warsaw
peterblazejewicz
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
Reply With Quote

#4 Old Re: Recoding video n transfering it via OTA - 2006-07-19, 08:08

Join Date: Jul 2006
Posts: 4
Location: Kommetjie, Cape Town, South Africa
lexfaure
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
Reply With Quote

#5 Old Re: Recoding video n transfering it via OTA - 2006-07-19, 11:25

Join Date: Mar 2006
Posts: 14
giz155's Avatar
giz155
Offline
Registered User
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 With Quote
Reply « Previous Thread | Next Thread »
Display Modes
Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules

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

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Forum Jump
Similar Threads
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

Rate This

 
Bookmark this page: DeliciousDiggFacebookGoogleYahooStumbleUponRedditDiigoTechnocratiTwitter  Share this page Share this page Print this Page Print this page Invite a friend Invite a friend
京ICP备05048969号    Email Newsletters Press Terms & Conditions Privacy Policy Sitemap Contact Us © 2009 Nokia 
RDF Facets: qdcZidentifierQSxhttpE3aE2fE2fdiscussionE2eforumE2enokiaE2ecomE2fforumE2fshowthreadE2ephpE3ftE3d134434X qdcZtypeQUqfnZE45E78cludedFromGeneralE4cistingsQ qdcZtypeQUqfntypeZCommunityContentQ qdcZtypeQUqfntypeZE44iscussionQ qdcZtypeQUqfntypeZE44iscussionContentQ qdcZtypeQUqfntypeZE52esourceQ qdcZtypeQUqfntypeZWebpageQ qdcZtypeQUqmarsZManagedE52esourceQ qdcZtypeQUqwebZInformationE52esourceQ qdcZtypeQUqwebZPageQ qdcZtypeQUqwebZE52esourceQ qdcZtypeQUqrdfsZE52esourceQ qfnZtopicQUqfnTopicZentertainmentQ qfnZtopicQUqfnTopicZj2meQ qfnZtopicQUqfnTopicZjavaQ qfnZtopicQUqfnTopicZmediaQ qfnZtypeQUqfntypeZCommunityContentQ qfnZtypeQUqfntypeZE44iscussionQ qfnZtypeQUqfntypeZE44iscussionContentQ qfnZtypeQUqfntypeZE52esourceQ qfnZtypeQUqfntypeZWebpageQ qmarsZlanguageQUxhttpE3aE2fE2fswE2enokiaE2ecomE2flanguageE2d1E2fenX qrdfZtypeQUqfnZE45E78cludedFromGeneralE4cistingsQ qrdfZtypeQUqfntypeZCommunityContentQ qrdfZtypeQUqfntypeZE44iscussionQ qrdfZtypeQUqfntypeZE44iscussionContentQ qrdfZtypeQUqfntypeZE52esourceQ qrdfZtypeQUqfntypeZWebpageQ qrdfZtypeQUqmarsZManagedE52esourceQ qrdfZtypeQUqwebZInformationE52esourceQ qrdfZtypeQUqwebZPageQ qrdfZtypeQUqwebZE52esourceQ qrdfZtypeQUqrdfsZE52esourceQ