This code is in a constructor of a class extended from Canvas.Code:Player p; VideoControl vc; p = Manager.createPlayer("capture://devcam0"); p.realize(); vc = (VideoControl)p.getControl("VideoControl"); vc.initDisplayMode(VideoControl.USE_DIRECT_VIDEO, this); p.start(); vc.setVisible(true);
When I start this app on Nokia 5800 in landscape orientation, it seems to work fine. But in portrait it shows only a part of viewfinder in the top of the screen. So, how do I get a full-size viewfinder (without clipping) in a portrait orientation? Tried to use locator string "capture://devcam0?width=480&height=640" and it failed with MediaException.