PDA

View Full Version : Midlet programming and the XDA2 Camera


wizrod
5th May 2004, 12:31 PM
Hi,

Has anyone had any luck with writing Midlets for the XDA2? I'm trying to write one use the camera as a webcam (Yes, I know, a bit ambitious for my secomd midlet!)

I'm using this line:

Player vPlayer = Manager.createPlayer("capture://video");


I get a MediaException, meaning '...a Player cannot be created for the given locator.' (quoted from MMAPI JavaDoc).

Also, calling the Manager.getSupportedProtocols() method for 'mpeg/video' returns an empty list, as does calling Manager.getSupportedContentTypes() for 'capture://video'.

Has anyone else managed to access the XDA2 camera from a Midlet? If so, what is the trick?!!

cheers

Paul

andyclap
5th May 2004, 03:24 PM
I don't think anybody's managed to get access to it from native eVC++ let alone midlets, and IA style aren't revealing anything about how their app does it, so I wouldn't hold your breath for a solution... Bloody closed APIs.

wizrod
5th May 2004, 04:19 PM
Knackers!! :evil:

Cheers anyway! I'll keep poking and see what happens....

Paul

Rudegar
5th May 2004, 04:22 PM
i suspect that their applications take pretty much control direct without using the winCE api
because when i start the cam my clock which it still display stop being 24h and turn to the AM/PM confusement