locked
how to change a camera using media capture in metroapplication [c++/cx] when two cameras are connected to the PC?

    Question

  • how to change a camera using media capture in metroapplication [c++/cx] when two cameras are connected to the PC?
    Wednesday, September 12, 2012 1:15 PM

Answers

  • Hello,

    You can simply reinitialize the MediaCapture object with a new device ID.

    captureInitSettings.videoDeviceId = deviceList[n].id;

    Where "n" is the index of the device.

    I hope this helps,

    James


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

    Thursday, September 13, 2012 12:52 AM
    Moderator

All replies

  • Hello,

    You can simply reinitialize the MediaCapture object with a new device ID.

    captureInitSettings.videoDeviceId = deviceList[n].id;

    Where "n" is the index of the device.

    I hope this helps,

    James


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

    Thursday, September 13, 2012 12:52 AM
    Moderator
  • Thanks James..
    Thursday, September 13, 2012 2:20 AM