I'm trying to capture an image on a S40 device. The problem is that even if i create the Player using:
player = Manager.createPlayer("capture://image");
videocontrol = (VideoControl) player.getControl("VideoControl");
when i call :
imagebyte = videocontrol.getSnapshot("encoding=jpeg");
i get the following error:
javax.microedition.media.MediaException: Invalid locator: capture://video?encoding=jpeg
Why is the locator set to capture://video when trying to get the Snapshot if the Player is created using capture://image?