I'm building a multimedia application on window8 and I need to access the system default camera device (say there multiple web cams connected to the computer and I need to select the system default one). I'm using media foundation framework and cannot find such an API that tells me which is the default camera. It seems it can only return a list of devices connected to the computer (using the MFEnumDeviceSources(pAttributes, &ppDevices, &count) function). Among all the capture device attributes listed here: http://ift.tt/1BPk20U ,
it seems there is no such an attribute specifying whether the device is a default one.
So how do I get the default device using Media Foundation ? If Media Foundation cannot achieve this, is there any other frameworks I can use ?
Aucun commentaire:
Enregistrer un commentaire