How to use VideoDeviceController.GetDeviceProperty(string propertyId)
-
quinta-feira, 14 de junho de 2012 14:08
Hello:
I have implement Camera device app with C# and I want to implement extended camera properties.
I want to call VideoDeviceController.GetDeviceProperty(string propertyId);
However, I don't know how to find the definition below(C#).
PROPSETID_VIDCAP_CAMERACONTROL_FLASH
PROPSETID_VIDCAP_CAMERACONTROL_VIDEO_STABILIZATION
PROPSETID_VIDCAP_CAMERACONTROL_REGION_OF_INTEREST
I have tried two ways.
1.
===============================================================================================
var CameraCLSID = new Guid("9D12D198-F86C-4fed-B023-5D87653DA793"); //PROPSETID_VIDCAP_CAMERACONTROL_REGION_OF_INTEREST
^^^^^^^^^^^^^^^^^^^^^^^^^^^^ GUID find in (ksmedia.h)
object ksGetStruct = videoDevController.GetDeviceProperty(CameraCLSID.ToString());
===============================================================================================
2.
===============================================================================================
object ksGetStruct = videoDevController.GetDeviceProperty("PROPSETID_VIDCAP_CAMERACONTROL_REGION_OF_INTEREST");
===============================================================================================
Both ways got exception
Additional information: Invalid class string (Exception from HRESULT: 0x800401F3 (CO_E_CLASSSTRING))
Any solution?
Thanks,
Hardi
Todas as Respostas
-
quinta-feira, 14 de junho de 2012 16:49Moderador
Hardi,
I will look into this for you.
Best Wishes - Eric
- Editado Eric Hanson-MSFTMicrosoft Employee, Moderator quinta-feira, 14 de junho de 2012 16:49
-
sexta-feira, 10 de agosto de 2012 22:06
The exception means the GUID string is not properly formatted. The GUID string needs to be bracketed, e.g. videoDevController.GetDeviceProperty("{aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee}");
Thanks,
Yuenfai
-
quarta-feira, 15 de agosto de 2012 14:59
Yuenfai,
With this method I receive other exception: "The data area passed to a system call is too small.(Exception from HRESULT: 0x8007007A)".
Do you know any solutions?
Thanks,
Nikolay
-
sexta-feira, 17 de agosto de 2012 21:22
Hi,
I am also having this problem.
I get the same "The data area passed to a system call is too small." Is there any way to retrieve device information from VideoDeviceController? It would be nice to know which device it is (in case of multiple attached devices).
Thank you,
Gary
-
terça-feira, 21 de agosto de 2012 17:14Since there appears to be no other way to get device information, I'm just going to assume this is a bug unless someone else can explain otherwise.
-
quinta-feira, 13 de setembro de 2012 06:06I have the same problem in JavaScript
-
quarta-feira, 3 de outubro de 2012 20:41
Same here, and still no update on this thread nor the current MSDN online help.
If MS wants us developers to write great apps for their new WinRT, why do we not get more info right from the word GO?
Before you didn't have to plough through tons of forum threads or header files or what not. When you wanted to know how to use a certain method. You just pressed F1 and there you got it or at least some hint how to find out. But not now! The best you get is an "I will look into this for you" that has not provided any help for almost four months now!
-
domingo, 9 de dezembro de 2012 22:55
I'm having the same problems trying to enable Flash, have anyone figured out a way yet? :)
Thanks!

