locked
VideoDeviceController question

    Question

  • On our camera device app (More Options Experience), we get a pointer to VideoDeviceController passed as initialization argument.  I am trying to get the current camera preview resolution from this pointer. When I insert the code below  I get an exception as I step through it

    IMediaEncodingProperties^ mep = VideoDeviceController->Get()->GetMediaStreamProperties(MediaStreamType::VideoPreview);

    Can you tell me what Im doing wrong?


    eme

    Thursday, September 06, 2012 9:21 PM

All replies

  • Hello,

    What is the hex code (HRESULT) for the error that you are seeing?

    -James


    Windows Media SDK Technologies - Microsoft Developer Services - http://blogs.msdn.com/mediasdkstuff/

    Friday, September 07, 2012 8:22 PM
    Moderator
  • Hi.

    The hresult value I am getting is 0xC00D36B2


    eme

    Monday, September 10, 2012 9:56 PM
  • Hello,

    This error indicates that the VideoDeviceController that you are being passed is not setup properly. In this case the internal media capture objects have not been initialized as expected.

    I hope this helps,

    James


    Windows Media SDK Technologies - Microsoft Developer Services - http://blogs.msdn.com/mediasdkstuff/

    Monday, September 17, 2012 11:59 PM
    Moderator
  • Hi James,

     Basically when the 'More Options' options dialog is instantiated we just get a pointer to this object. So is there going to be an update to fix this problem?


    eme

    Tuesday, September 18, 2012 12:52 AM
  • Anything back from MS?

    eme

    Wednesday, October 03, 2012 10:50 PM