Messages by dida

One topic, One message
Kuix technical support » how can i use kiux to open a camera for taking pictures?

hi guys. i have some problem live this one:http://www.kalmeo.org/forum/topic/219/custom-widget---camera/1#post844

and i try open this link:http://www.kalmeo.org/projects/kuix/snippets/show/3

the link down

before i can use this to open camera for taking pictures.

try {
   player = Manager.createPlayer("capture://video");
   player.realize();
   videoControl = (VideoControl) player.getControl("VideoControl");
   
   if (videoControl != null) {
    videoControl.initDisplayMode(VideoControl.USE_DIRECT_VIDEO, this);
   }
   player.start();
  } catch (Exception e) {
   System.out.println("init Error:" + e.toString());
  }

 

but how could i open camera for taking pictures with kiux?

any give me an example?

Thanks!