locked
In the CameraOptionsUI sample, how can i add some my items into the Webcam settings 'More options' dialog?

    Question

  • Run the CameraOptionsUI in Metro and i click 'Start Preview' then click 'Show Webcam Settings', it will show a 'More options' dialog about adjust the setting of camera. I want to add some my items into it, can i do it and how to do? 
    Monday, October 31, 2011 2:21 AM

Answers

All replies

  • Are you writing the driver for the webcam?  Those settings will differ depending on the what webcam you are using.  For example depending on which camera I am using, I do not have Focus enabled.  What precisely are you trying to add or see in that CameraOptionsUI class? Or... what do you want to add to the IE.


    Jeff Sanders (MSFT)

    Monday, October 31, 2011 3:13 PM
    Moderator
  • Are you writing the driver for the webcam?  Those settings will differ depending on the what webcam you are using.  For example depending on which camera I am using, I do not have Focus enabled.  What precisely are you trying to add or see in that CameraOptionsUI class? Or... what do you want to add to the IE.


    Jeff Sanders (MSFT)


    Thanks for your reply. I am not write driver for the webcam. I only want to write an application for the NB or PAD camera in metro mode and add some parameters such as 'White Balance', 'Hue' and so on, just like DC's parameters or the Android-camera. Could i finish it based on this sample? Or ... what's the right way for this application? BTW, the OS version i am using is 8102, and in future will you enhance the experience for camera?
    Tuesday, November 1, 2011 3:22 AM
  • Hi Snowy,

    I think what you are looking for is demonstrated in this sample: http://code.msdn.microsoft.com/windowsapps/Metro-style-Device-App-for-f909d426

    If it is not, you can search in the Samples for Camera and see other ways to display interfaces.  Please let me know if you find what you need there or if you where thinking of something else!

    -Jeff


    Jeff Sanders (MSFT)
    Tuesday, November 1, 2011 11:29 AM
    Moderator
  • Hi jpsanders,

    Thanks for your reply! I have learn the sample and it's not that i want. I found WPD app but i don't know of it, http://msdn.microsoft.com/en-us/library/dd388998(v=VS.85).aspx, it said that WPD provides a flexible, robust way for computers to communicate with music players, storage devices, mobile phones, cameras, and many other types of connected devices. Could i solve my problem by this? Besides, is DriectShow supported in windows8 mero mode?

    Wednesday, November 2, 2011 9:59 AM
  • Hi Snowy,

    WPD is not available to Metro Style applications.  Could you share precisely what you are trying to control and what you are trying to do?  Maybe a mock-up of your UI would be helpful.  I am having difficulty trying to understand what you are trying to accomplish.

    -Jeff


    Jeff Sanders (MSFT)
    Wednesday, November 2, 2011 12:33 PM
    Moderator
  • Hi jpsanders,

    Thanks for your information. The functions i want to do just like that of sub pictures: one is 'White Blance', another is 'Color Effect'.

    These pictures are from Android.

     

     

    Thursday, November 3, 2011 2:22 AM
  • My WebCam does not have those capabilities.  What WebCam are you using that has these capabilities?  This seems more to be a Camera specific setting.  For instance I remember hooking up a Canon camera once and being able to set these with the software that Canon supplied.  I don't recall seeing a WhiteBalance setting for a WebCam.

    -Jeff


    Jeff Sanders (MSFT)
    Thursday, November 3, 2011 8:32 PM
    Moderator
  • Thanks a million! I have another question.

    I find that VideoDeviceController  has a lot of properties: Brightness, contrast, focus, exposure, WhiteBalance and so on(http://msdn.microsoft.com/en-us/library/windows/apps/windows.media.devices.videodevicecontroller(v=VS.85).aspx). 

    Brightness, contrast and focus could be found in the 'More optionss' dialog(refer to the sub picture). Could i add the WhiteBalance into it and how to do?

    I am sure that the whitebalance of the camera i am using could be adjust, because i find a desktop app which has finished it by DirectShow.

    In other way, how to remove or add one itme into it? For example, how to remove the Brightness item?

    Friday, November 4, 2011 6:43 AM
  • You should be able to add whitebalance if your camera supports it.  The sample I mentioned before could be used:

    http://code.msdn.microsoft.com/windowsapps/Metro-style-Device-App-for-f909d426

    You can create your own UI at that point however you would need to add the device Metadata package for your camera (this is probably beyond what you want to do however since you are not the camera vendor).  See the instructions in 'Run the Sample'.  This technique allows camera manufactures to provide UIs for their cameras See: http://msdn.microsoft.com/library/windows/hardware/hh454870

     

     


    Jeff Sanders (MSFT)
    Monday, November 7, 2011 8:02 PM
    Moderator
  • Thanks for your help! The sample and the article are very useful for me. I am trying the sample but i could not see the result.

    http://social.msdn.microsoft.com/Forums/en-US/winappswithcsharp/thread/52fa381b-fbc2-40cb-92d4-3e6961f77223

    Tuesday, November 8, 2011 7:51 AM
  • Friday, November 11, 2011 12:17 PM
    Moderator