Is it possible to disable the video mode in the XDA2.
We use the software provided on the XDA2 called 'Camera for Pocket PC version 2.01' but this allows the user to take video as well as pictures.
For my application i would like to disable this feature and only let the users take pictures.
Does anyone know if there is an application or registry setting that i can change to do this or any other ideas.
Thanks for your help
camera.exe parameters
I have read that it is possible to pass parameters to the camera.exe so that it starts with different behaviour.
The photo contacts application does not allow video input!!!
Does anyone have any further information or a list of parameters.
This would be of great help.
Thanks again.
Clive
I haven't tried this, but maybe you can get into the Registry and delete the keys to the Video formats and such?
Search the registry for values like Motion-JPEG AVI, MPEG-4 and H.263
Maybe it could work, alas with an error when someone tries to capture video... :wink:
Let us know if you find a better solution...
Regards,
Rayan
I have been unable to find these video formats in the registry so im unable to remove them. Any other ideas?
Does anyone have an e-mail address for IA Style (or HTC) technical support?
Thanks
Have you tried to remove the following key?
\HKLM\Software\HTC\Camera\AppDefSettings\P2
\HKLM\Software\HTC\Camera\AppDefSettings\P3
Just make sure you backup your device before you change it.
On my device i dont have theses registry keys available so im unable to remove them. I have tried removing the following key but the video camera still work perfectly.
HKLM\SOFTWARE\IA Style\AppDefSettings
Any other suggestions are more than welcome.
Thanks for your help
Clive
Related
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:
Code:
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
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.
Knackers!! :evil:
Cheers anyway! I'll keep poking and see what happens....
Paul
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
Can anyone tell me if there is alternative software available for taking pictures (not video) with the XDA2.
I have been unable to configure the existing software from IA Style to disable the video functions and hence am looking for alternative program which only takes picture format.
Anyone got any ideas.
Help would be much appreciated.
Thanks
Hi there,
Is there any software out there that will log changes to system settings in the registry made by 3rd party software.
Basically over the last few weeks, no matter what i set my ringtone to, whenever someone calls me it re-sets the ringer to the default setting.
I can't for the life of me figure out what software (although i suspect calledID) is changing this particular value. It would be useful to log what changes are made and when so i can corector remove the offending program.
help! (please )
anyone??
You can use "pocket mechanik" it makes it possible to delete un-used keys from your reg.
Greetz,
Giovanni
Hi akurei,
Just my two cents: another way could be exporting your registry before and after installing the programs and comparing those exported files with something like iDiffCE.
HTH,
BGK
Cheers guys for the options - will investigate and hopefully get to the bottom of it.
Hi,
I'm sure there is somebody here that can help me. I've set up my SPV M5000 with some old programs, and they certainly messed up with the registry about file associations.
I can display jpg normaly, but if I try to see a jpg file (ie not embeded into a web page), I get the file save dialog. At first, it was registered to pimg.exe, and I tryed associating to to pocket painter for example, with no luck.
Anybody know the key to place to go back to a normal jpg displaying state for pocket ie?
TIA
I've the same problem.
Mine is the same but I've installed nothing that would affect the file associations...
I think perhaps it's just another of the joyful 'features' of Microsoft's wonderful Pocket Internet Explorer
Does it do the same with a gif or bmp?
V
That's exactly what I had on mine. I didn't get to the bottom of it, but instead did what vijay suggested and created a local html file with the jpg embedded. All I needed was to view a single jpg within PIE (from my webcam). This works fine, but is a workaround only for 1 jpg. I wouldn't want to do this for everything!
Surely one of the File Explorer tools can change the file associations?
I think the problem lies within PIE, when you click a pic it assumes its an attachment and so will save it,
I cant try atm but its worth trying to goto a pic directly ie,
http://www.website.com/picture.jpg
it may well display the image then, not sure, cant test atm. and its not going to be very useful when doing some normal browsing.
Same with Gif. I've teste on a K-Jam, and it display the picture properly in ie. I'm sure there is something messed up in registry
Found the solution
There is a CLSID value missing in HKCR/MIME/Database/Content Type/image/jpg and other gif and jpeg
Add a string value CLSID
{698E3FCA-70C3-11D0-81E8-00A0C90AD21A} and you are set.
@thaihugo
Won't work for me.
I've tried with PHM RegEdit but same behaviour as before.
Can you give us a screen shot of the correct registry key, please?
BTW:
There is another string "Image Filter CLSID" and
there is a "Bits"-key in /gif and /bmp and /jpeg but not in /jpg.
Are these needed too?
OK now it works.
What i've done is:
Created and copied the CLSID mentioned above into
image/bmp
image/gif
image/jpeg
image/jpg
image/pjeg
Copy the "Bits" from /jpeg to /jpg
Created a "Image Filter CLSID" in /jpg with the same content as found in /jpeg
Save, wait and Softreset. -> Works as intended!
I donĀ“t know if i've done to much, but everything works now.
I'm happy. Thank you!
I though it was my programs that would delete this keys, but it seems you need to insert them also. Maybe it is a full system bug? A registry export might be of some help if some other report the same problem.
This still isn't quite working for me...
Can someone explain again EXACTLY what I have to do?
Hmm - interesting stuff - will have to try this.
I assume this isn't going to affect other JPG viewers, eg Opera???
I have the same problem on both Hima and Universal WM2006
Himalaya > TOFCLOCK HIMA WM6 AKU.0.7.0
Universal > Jwrightmcps 9000_WWE_21200_21207_11500
The registry solution proposed doesn't work for me, probably due a different CSLID. Any suggestion?
THX
Many thanks to CouchPotato
@CouchPotato
Thank youuuu, your step by step solution worked fine for me on BA (WM6)
bye,
Ruben
Hi Guys,
Because the standard API's to use the camera aren't flexible enough I need to use directshow.
Unfortunately I'm not a very good C++ programmer (more C# ;-))
I found this solution. Wich compiles a C++ DLL and can be called from C#.
Perfect! Except the C++ code doesn't really do what I want to. (And I have no idea how to change it)
See attachement for the C++ project
Dll does: Capture one frame from the camera and store it as a file. (with 320x240 resolution, not great quality)
I'd prefer to use the best available quality, or mayby choose the quality I want.
Also I'd prefer not saving/storing the file but return a stream / bitmap / image
Because I only want to show it on screen (actualy let a mobile webserver respond an image with as much frames per sec as possible)
(Saves a step, storing and deleting everytime)
Any Help?
PS. I also tried Directshow.Net Library But it doesn't seem to work on Windows Mobile.
C# Code
Btw, this is the code I use in C# to create the functions:
[DllImport("CameraCaptureDLL.DLL")]
private static extern bool CaptureStill(string Path);
[DllImport("CameraCaptureDLL.DLL")]
private static extern bool InitializeGraph(IntPtr hWnd);
Just to keep y'all posted, I'm now looking @ this solution (CodeProject.com)
They rewrote the DLL file, and I think it's gonna do what I want, but I first need to install Windows CE 5.0 wich takes alot of time....
I met same problem with you.
I just want to show the camera sight, like the Camera app's Preview function.
I don't know if there is a HTC's Camera SDK.
Please keep contract, if I have any improvment, I will tell you.
I had fun with camera but not using directshow or the preview...I'm just launching the camera app (using sample camera in SDK).
If anyone find an easy way to have "embedded camera display" in an application I'm really interested!! (like a pictureBox having camera as image source)
If I found something I'll tell...
DarkAngelFR said:
I had fun with camera but not using directshow or the preview...I'm just launching the camera app (using sample camera in SDK).
If anyone find an easy way to have "embedded camera display" in an application I'm really interested!! (like a pictureBox having camera as image source)
If I found something I'll tell...
Click to expand...
Click to collapse
I found functions and its parameters by sniffig camera calls on my VOX
Captured data is stored as UYVY.
m32
m32 said:
I found functions and its parameters by sniffig camera calls on my VOX
Captured data is stored as UYVY.
m32
Click to expand...
Click to collapse
Could you provide the compiled version of the htccamera dll ?
Will try to build this later (@work don't have cc compiler, just VS2008)
Thanks!
An in-memory capture would almost certainly improve the live-scan mode in Barcorama also! I could really use that in-memory capable CameraCaptureDll.dll.
Many users seem to have successfully compiled the source at http://www.codeproject.com/KB/mobile/samplegrabberfilter-wm6.aspx, but I can't find the compiled dll somewhere .
I fail to compile it myself as it needs the WindowsCE Platform Builder and VS2008...
Anybody that comes across the DLL, please share!
have fun,
hypest
Hello,
working on it ^^ I will upload the dll here later today
Here you go : download (if fails : try here)
is the source code compiled (look in /bin/Release). Tested and works nice (deploy the dll then the sample app).
Hope this helps!
Thanx!!
will try it!
UPDATE:
The sample opens up but seems to do nothing on my kaiser. <-UPDATE: wrong! it works OK.
I have managed to use the DLL directly though. The capturing works fine but the capture-stop seems to fail: the Stop() function hangs. I use the Shutdown() that seems to be OK, but then I have trouble re-initializing the whole procedure. Also, there seem to be a sensitivity on manually using the garbage collector.
Thanks again anyway!!
Cannot seem to import the dll into another project
@DarkAngelFR
Thanks very much for the sample app for video streaming, was very helpful.
However I really need to use the dll or even the import the CameraCaptureDLL c++ code into our project. I have already read over the ReadMe text file but need further help on how to create this object? Have already tried the Ignore Input Library property and that does not work sadly. Any help would be great!
Thanks,
John
m32 said:
I found functions and its parameters by sniffig camera calls on my VOX
Captured data is stored as UYVY.
m32
Click to expand...
Click to collapse
I have build the camerasniffer dll (and called it htccamera.dll) with mingw32ce, but how do I use it?
I tried copying it to "/windows" and rebooted the phone (hermes) but I do not get a log file on the storage card. Any hints?
Thanks a lot!
Hi,
I got this error when I try to debug this application on my mobile (HTC HD2)
"An unhandled exception of type 'System.MissingMethodException' occurred in TestCameraCapture.exe
Additional information: Can't find PInvoke DLL 'CameraCaptureDLL.DLL'."
But it seem to works fine on the Emulator.
How can I test it on my mobile then?
EDIT
Problem solved, I just had to copy the 'CameraCaptureDLL.DLL' file to the folder where the application is running.