Categories: Java | Java ME | How To | Code Examples | Multimedia | Imaging
This page was last modified 08:30, 25 September 2007.
How to display the camera & take snapshots in Java ME
From Forum Nokia Wiki
(Redirected from Talk:Testing)
The following code is used for camera display:
public void cameraPlayer() { try { player = Manager.createPlayer("capture://video"); player.realize(); videoControl = (VideoControl)player.getControl("VideoControl"); player.start(); } catch (Exception e) {} }
The following code is used for capturing images using camera in Java ME:
byte[] raw = videoControl .getSnapshot(null); Image image = Image.createImage(raw, 0, raw.length);
TODO: list available modes, and when you need to use a different locator
helpful links:
http://developers.sun.com/techtopics/mobility/midp/articles/picture/ http://www.java-tips.org/java-me-tips/midp/capturing-video-on-j2me-devices.html
| Related Discussions | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Disable camera | Asmodeusz | Symbian Media (Graphics & Sounds) | 2 | 2008-04-30 10:02 |
| J2ME MMAPI to capture video (more than 10fps) on N73 front camera | ad_hoc_22 | Mobile Java General | 1 | 2008-05-22 16:04 |
| 3gp streaming to Nokia 6680/6630 | wasbo | Graphics & Video & Streaming | 23 | 2007-04-24 11:23 |
| 6630 v 4.03.18 SERIOUS BUG??? | pitstreet | Mobile Java Networking & Messaging & Security | 12 | 2005-11-15 09:33 |
| Video playback stability on 6680 | skjolber | Mobile Java Media (Graphics & Sounds) | 6 | 2005-10-14 23:21 |
