Hi,
I tried to compile your example and I am having problems getting it to run. When I can see the line "Insufficient permissions on /dev/video4 -- does the app have the CAMERA permission?". I am sure video4 is the right device since it appears only when the camera is attached via USB.
I did not change anything else in the library or your example. Any idea on how to resolve this?
Thank you!