It seems quite some people are struggling with the problem the client software only captures images from the rear camera on certain Windows machines.
I had this problem too and decided to fix it. As there is only compiled code of the prey-webcam.exe module on GitHub, I had to decompile it ... open source it's called, that's what I thought at least. Anyway. The reason why it didn't work is because the module simply selects the first camera it finds. Code seemed pretty crappy so the fix is at the same level, don't blame me or the decompiler for it. It works.
In order to install it:
- go to your Prey install directory (usually C:\windows\Prey)
- go down the path to current\lib\agent\providers\webcam\windows
- replace prey-webcam.exe and index.js with the files from the attachment
open index.js with a text editor and edit the line:
var preferred_device = "Microsoft Camera Front";
replace the camera name with the name of the device you want
if needed, run this command in an administrator console and check the myDeviceList.txt to see all available camera names:
prey_webcam.exe -list_devices myDeviceList.txt
restart windows to make the changes take effect
The binary prey_webcam.exe now supports two additional switches:
-preferred_device <devicename> makes it select a preferred camera device if found
-list_devices <filepath> which dumps all available camera devices in a file, one per line
Using these switches, camera selection can be integrated into newer releases if desired.