Hello. I have two Series40 phones - Nokia/7500(5 ed.) and Nokia/6288(3 ed.)
1. I create player using locator capture://image
Player player = Manager.createPlayer("capture://image");
2. I obtain VideoControl
VideoControl vc = (VideoControl) player.getControl("VideoControl");
I display it in full screen on a canvas.
3.I realize and start camera
Now I can CLEARLY can see the image on screen.
4. I'm trying to get image by calling:
byte data = vc.getSnapshot("image/jpeg");
byte data = vc.getSnapshot(null);
Both calls results the same - data becomes null.
Note that capture://video does not work for image capturing on Series 40.
Also please note that this code is returning null even on Nokia emulator.
Finally, if I change locator to capture://video, then this code works perfectly on Nokia/N72 (Series 60) and 4 different Sony-Ericsson devices (K750, Z530, W850, K850)