Select a webcam using deviceid

New product: VCL components for displaying and controlling IP cameras, webcams, video conferencing, video chats
Post Reply
RogerioUK
Posts: 7
Joined: Mon May 02, 2016 2:39 pm
Location: Brazil

Select a webcam using deviceid

Post by RogerioUK » Thu Aug 24, 2017 2:20 am

Is it possible to define the active camera using the DeviceID (DevicePath) and not the FriendlyName ?

I have two cameras that have same friendly name

Sergey Tkachenko
Site Admin
Posts: 13584
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Re: Select a webcam using deviceid

Post by Sergey Tkachenko » Thu Aug 24, 2017 12:20 pm

Friendly names are in RVCamera.VideoDeviceList[], identifiers are in RVCamera.VideoDeviceIdList[].
You can find the device ID in VideoDeviceIdList[], and assign VideoDeviceIndex to switch to this device.

Post Reply