Ability to provide a onDisconnect callback would be really useful. This way it would be much easier to detect if the connection to the camera has been lost unexpectedly.
The disconnection is clearly already detected on the sdk side as per the logs
[03-25 10:42:16.159] 10385 10424 V usb_device.cpp:0037: read ret = -4, desc: LIBUSB_ERROR_NO_DEVICE
[03-25 10:42:16.160] 10385 10424 E io_device.cpp:0012: failed to read data
[03-25 10:42:16.160] 10385 10424 W camera_impl.cpp:0093: The device has been disconnected
Ability to provide a
onDisconnectcallback would be really useful. This way it would be much easier to detect if the connection to the camera has been lost unexpectedly.The disconnection is clearly already detected on the sdk side as per the logs