This is a demo app that uses IOKit (libusb, libvnc) to interact with USB camera on a jailbroken iPhone
More details in the blog post.