CameraController
CameraController copied to clipboard
Not working with multiple camera of the same model (2)
Describe the bug Can't control 2 cameras of the same model. They work individually but when both are attached the controls on both cameras control only a single camera. Similar to #47.
Additional context
I did a bit of digging and the problem seems to be the getIOService() method, for both cameras the same number is returned. I looked into the properties from IORegistryEntryCreateCFProperties of both cameras, here is the diff:
@@ -1,7 +1,7 @@
â–¿ 28 elements
â–¿ 0 : 2 elements
- key : sessionID
- - value : 5957302424021
+ - value : 5957309576006
â–¿ 1 : 2 elements
- key : USBSpeed
- value : 3
@@ -55,10 +55,10 @@
- value : HD USB Camera
â–¿ 12 : 2 elements
- key : USB Address
- - value : 3
+ - value : 5
â–¿ 13 : 2 elements
- key : locationID
- - value : 1114112
+ - value : 1310720
â–¿ 14 : 2 elements
- key : bDeviceSubClass
- value : 2
@@ -102,7 +102,7 @@
- value : IOCommand is not serializable
â–¿ 26 : 2 elements
- key : kUSBAddress
- - value : 3
+ - value : 5
â–¿ 27 : 2 elements
- key : kUSBVendorString
- value : HD USB Camera
Is there any chance one of those could be used in the lookup?
Greetings