troubleshooting Question

J2ME MMAPI

Avatar of Addictive
Addictive asked on
Java
4 Comments1 Solution2340 ViewsLast Modified:
Hi,

I was trying to find this answer all over the internet (and EE too!!!).
I need to create a midlet where I can record capture video.
I am not going to use J2ME Polish. I tried this code
try {
// Create a Player that captures live audio.
Player p = Manager.createPlayer("capture://video");
p.realize();
// Get the RecordControl, set the record stream,
// start the Player and record for 5 seconds.
RecordControl rc = (RecordControl)p.getControl("RecordControl");
ByteArrayOutputStream output = new ByteArrayOutputStream();
rc.setRecordStream(output);
rc.startRecord();
p.start();
Thread.currentThread().sleep(5000);
rc.commit();
p.close();
} catch (IOException ioe) {
} catch (MediaException me) {
} catch (InterruptedException ie) { }

and it doesnt work as I am trying to make a device independent (MMAPI driven tho) application.
Any one has any answer?
ASKER CERTIFIED SOLUTION
rrz
student

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 1 Answer and 4 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 4 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros