Select a webcam using deviceid

RVMedia support and discussion (components for displaying and controlling IP cameras, webcams, video conferencing, video chats, recording audio and video files)
Post Reply
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: 14313
Joined: Sat Aug 27, 2005 10:28 am

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