Categories: Java | Java ME | How To | Code Examples | Multimedia | Imaging
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
| Thread | Thread Starter | Forum | Replies | Last Post |
|---|---|---|---|---|
| pixel display | Ariv_212 | Symbian Media (Graphics & Sounds) | 1 | 2006-01-19 04:05 |
| Nokia N73 Problem !!!!!! | bluebelle_88 | Mobile Java Media (Graphics & Sounds) | 5 | 2007-02-08 05:35 |
| Nokia firmware MJPEG support | mosoft | Mobile Java General | 3 | 2005-12-06 07:03 |
| can nokia 6600 play mjpeg video?? | idiot_s | Symbian Media (Graphics & Sounds) | 2 | 2005-11-22 05:49 |
| Cannot get CameraApp to work | ryanrst | Symbian Tools & SDKs | 7 | 2006-03-08 10:25 |