Hi,
I have a simple application with a canvas and a VideoControl object. The problem is that when the screen orientation changes for Nokia N95, the whole canvas freezes (N95 new firmware version) or displays the videocontrol, but with the image rotated by 90 degrees (N95 8GB older firmware version). On an E90, when I switch from the big screen to the little screen or the other way aroud, the camera canvas just freezes.
I use the sizeChanged function:
Is it possible that the VideoControl would work even if I switch screens or I change the orientation?Code:protected void sizeChanged(int w, int h) { Debugger.log("w: " + w + " h: " + h); try { this.videoControl.initDisplayMode(VideoControl.USE_DIRECT_VIDEO, this); this.videoControl.setDisplayLocation(0, 0); this.videoControl.setDisplaySize(w - 4, h - 30); } catch (MediaException me) { try { this.videoControl.setDisplayFullScreen(true); } catch (MediaException me2) { } } repaint(); }

Reply With Quote

