Take the 2-minute tour ×

This code is used by me for image capture in LWUIT, this works fine in Nokia X2 but for other mobile it shows the following error:

javax.microedition.media.mediaexception: unable to realize initialize failed.

Kindly look into the code :

 vc = VideoComponent.createVideoPeer("capture://image");
       player = (Player) vc.getNativePeer();
      // vc.setPreferredH(200);
      // vc.setPreferredW(320);
        videoControl = (VideoControl)player.getControl("VideoControl");
share|improve this question

1 Answer 1

up vote 2 down vote accepted

I think this could be useful for you:

How to capture images using LWUIt VIdeoComponent

Here you can find an explanation to how can you capture images with a VideoComponent

share|improve this answer
Hi, still now i am facing the same problem :( –  Ramesh Manly Dec 28 '11 at 10:46
have you tried with vc = VideoComponent.createVideoPeer("capture://video"); –  frayab Dec 28 '11 at 15:19
hi , thanks it works but there is an flickering issue ? –  Ramesh Manly Dec 29 '11 at 11:04

Your Answer


