3
Nokia의 기본 카메라 미들 릿의 동작을 시뮬레이트해야합니다.Nokia C6에서 카메라 미들 렛을 시뮬레이트하는 방법은 무엇입니까?
Nokia C6 용으로 J2ME로 작성했습니다.
내가 사용하는 MMAPI, 문제는 VideoControl 항목의 크기입니다. videoControl.setDisplayFulscreen(true);
으로 만들었지 만 전체 화면이 아니므로 setDisplaySize 메서드가 도움이되지 않습니다. videoControl의 크기는 디스플레이의 대략 1/3입니다
public CameraCanvas (Evidence_elektromeru midlet, ManagePhotos caller,String name) {
super(true);
this.midlet = midlet;
this.caller = caller;
this.name = name;
this.setFullScreenMode(true);
try {
player = Manager.createPlayer("capture://devcam0");
player.realize();
// player.prefetch();
if (videoControl2 != null)
videoControl2.setVisible(false);
videoControl1 = (VideoControl) player.getControl("VideoControl");
videoControl1.initDisplayMode(VideoControl.USE_DIRECT_VIDEO,this);
videoControl1.setDisplayLocation(0, 0);
videoControl1.setDisplaySize(360,500);
}catch (MediaException me2) {
try {
videoControl1.setDisplayFullScreen(true);
} catch (Exception e) {}
}
catch (Exception e) {}
finally {
try {
player.start();
} catch (Exception e) {}
videoControl1.setVisible(true);
}
신청서에 서명해야합니다. – Lucifer
카메라에 액세스 할 수 있지만 카메라가 노키아 c6에서 기본 카메라처럼 보이길 원합니다. 프로파일 모드의 풍경과 상관없이 디스플레이 전체에 와이드 스크린 VideoControl이 있습니다. ( – TomasS
VerySign 인증서로 신청하십시오. – Lucifer